[][src]Trait lazy_bytes_cast::from::FromBytesCast

pub unsafe trait FromBytesCast<T: ToBytesCast> {
    fn cast_to(&self) -> Option<T>;
}

Provides casting from bytes slice.

If you're absolutely hate to bother yourself by checking Result.

Feel free to just use bytes_cast_lazy

Required methods

fn cast_to(&self) -> Option<T>

Performs cast to integer.

Loading content...

Implementations on Foreign Types

impl<T: ToBytesCast> FromBytesCast<T> for Vec<u8>[src]

impl<T: ToBytesCast> FromBytesCast<T> for [u8][src]

impl<'a, T: ToBytesCast> FromBytesCast<T> for &'a [u8][src]

Loading content...

Implementors

Loading content...