[][src]Struct internship::IBytes

pub struct IBytes(_);

Interned byte string type

IBytes is like IStr, but for arbitrary byte string.

Methods

impl IBytes[src]

pub fn new(src: &[u8]) -> Self[src]

pub fn from_str(src: &str) -> Self[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn to_istr(&self) -> Result<IStr, Utf8Error>[src]

Trait Implementations

impl Eq for IBytes[src]

impl<'a> From<Cow<'a, [u8]>> for IBytes[src]

impl<'a> From<&'a [u8]> for IBytes[src]

impl<'a> From<&'a mut [u8]> for IBytes[src]

impl From<Vec<u8>> for IBytes[src]

impl From<Box<[u8]>> for IBytes[src]

impl From<String> for IBytes[src]

impl<'a> From<&'a str> for IBytes[src]

impl From<IStr> for IBytes[src]

impl From<ICStr> for IBytes[src]

impl PartialOrd<IBytes> for IBytes[src]

impl PartialEq<IBytes> for IBytes[src]

impl PartialEq<Vec<u8>> for IBytes[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a> PartialEq<&'a [u8]> for IBytes[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<[u8]> for IBytes[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Default for IBytes[src]

impl AsRef<[u8]> for IBytes[src]

impl Clone for IBytes[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for IBytes[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Debug for IBytes[src]

impl Hash for IBytes[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Deref for IBytes[src]

type Target = [u8]

The resulting type after dereferencing.

impl Index<Range<usize>> for IBytes[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for IBytes[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for IBytes[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for IBytes[src]

type Output = [u8]

The returned type after indexing.

impl Borrow<[u8]> for IBytes[src]

impl Serialize for IBytes[src]

impl<'d> Deserialize<'d> for IBytes[src]

Auto Trait Implementations

impl !Send for IBytes

impl !Sync for IBytes

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]