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
Implementors
impl<T: ToBytesCast> FromBytesCast<T> for Vec<u8>
impl<T: ToBytesCast> FromBytesCast<T> for [u8]
impl<'a, T: ToBytesCast> FromBytesCast<T> for &'a [u8]