[−][src]Struct abin::Bytes128
Up to 16 bytes / 128 bit stored on the stack.
This can be used when constructing segments from primitive types (such as char, u64, f32 or f64).
Implementations
impl Bytes128
[src]
pub fn try_new(slice: &[u8]) -> Option<Self>
[src]
creates new bytes from given slice. Returns None
if given slice contains more than
max_number_of_bytes
bytes.
pub const fn max_number_of_bytes() -> usize
[src]
The maximum number of bytes that can be stored.
pub fn as_slice(&self) -> &[u8]
[src]
Trait Implementations
impl Clone for Bytes128
[src]
impl Copy for Bytes128
[src]
impl Debug for Bytes128
[src]
impl Eq for Bytes128
[src]
impl<'a, TAnyBin> From<Bytes128> for BinSegment<'a, TAnyBin> where
TAnyBin: AnyBin,
[src]
TAnyBin: AnyBin,
impl From<char> for Bytes128
[src]
impl From<u8> for Bytes128
[src]
impl PartialEq<Bytes128> for Bytes128
[src]
impl StructuralEq for Bytes128
[src]
impl StructuralPartialEq for Bytes128
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bytes128
impl Send for Bytes128
impl Sync for Bytes128
impl Unpin for Bytes128
impl UnwindSafe for Bytes128
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,