[−][src]Struct internship::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]
fn partial_cmp(&self, other: &IBytes) -> Option<Ordering>
[src]
fn lt(&self, other: &IBytes) -> bool
[src]
fn le(&self, other: &IBytes) -> bool
[src]
fn gt(&self, other: &IBytes) -> bool
[src]
fn ge(&self, other: &IBytes) -> bool
[src]
impl PartialEq<IBytes> for IBytes
[src]
impl PartialEq<Vec<u8>> for IBytes
[src]
fn eq(&self, other: &Vec<u8>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<'a> PartialEq<&'a [u8]> for IBytes
[src]
fn eq(&self, other: &&[u8]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl PartialEq<[u8]> for IBytes
[src]
fn eq(&self, other: &[u8]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Default for IBytes
[src]
impl AsRef<[u8]> for IBytes
[src]
impl Clone for IBytes
[src]
fn clone(&self) -> 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 cmp(&self, other: &IBytes) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.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<H: Hasher>(&self, hasher: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Deref for IBytes
[src]
impl Index<Range<usize>> for IBytes
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8]
[src]
impl Index<RangeFrom<usize>> for IBytes
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8]
[src]
impl Index<RangeTo<usize>> for IBytes
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &[u8]
[src]
impl Index<RangeFull> for IBytes
[src]
impl Borrow<[u8]> for IBytes
[src]
impl Serialize for IBytes
[src]
impl<'d> Deserialize<'d> for IBytes
[src]
fn deserialize<D: Deserializer<'d>>(d: D) -> Result<IBytes, D::Error>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,