Trait lazy_bytes_cast::FromBytesCast [] [src]

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

Provides casting from bytes slice.

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

Feel free to just use bytes_cast_lazy

Required Methods

fn cast_to(&self) -> Result<T, ()>

Implementors