[][src]Struct abin::Bytes128

pub struct Bytes128 { /* fields omitted */ }

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]

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

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.