Trait lazy_bytes_cast::from::FromBytesCastLazy [−][src]
pub unsafe trait FromBytesCastLazy<T: ToBytesCast> { fn cast_to(&self) -> T; }
Provides casting from fixed size arrays to integers
Supposed to be safe without wrapping into Result.
Besides isn't it bothersome to unwrap perfectly safe cast from bytes array? ;)
Required Methods
fn cast_to(&self) -> T
Performs cast to integer.
Implementations on Foreign Types
impl FromBytesCastLazy<u32> for [u8; 4][src]
impl FromBytesCastLazy<u32> for [u8; 4]impl FromBytesCastLazy<i32> for [u8; 4][src]
impl FromBytesCastLazy<i32> for [u8; 4]impl FromBytesCastLazy<f32> for [u8; 4][src]
impl FromBytesCastLazy<f32> for [u8; 4]impl FromBytesCastLazy<u64> for [u8; 8][src]
impl FromBytesCastLazy<u64> for [u8; 8]impl FromBytesCastLazy<i64> for [u8; 8][src]
impl FromBytesCastLazy<i64> for [u8; 8]impl FromBytesCastLazy<f64> for [u8; 8][src]
impl FromBytesCastLazy<f64> for [u8; 8]impl FromBytesCastLazy<u16> for [u8; 2][src]
impl FromBytesCastLazy<u16> for [u8; 2]impl FromBytesCastLazy<i16> for [u8; 2][src]
impl FromBytesCastLazy<i16> for [u8; 2]impl FromBytesCastLazy<usize> for [u8; 4][src]
impl FromBytesCastLazy<usize> for [u8; 4]impl FromBytesCastLazy<isize> for [u8; 4][src]
impl FromBytesCastLazy<isize> for [u8; 4]impl FromBytesCastLazy<i16> for (u8, u8)[src]
impl FromBytesCastLazy<i16> for (u8, u8)impl FromBytesCastLazy<u16> for (u8, u8)[src]
impl FromBytesCastLazy<u16> for (u8, u8)impl FromBytesCastLazy<i32> for (u8, u8, u8, u8)[src]
impl FromBytesCastLazy<i32> for (u8, u8, u8, u8)impl FromBytesCastLazy<u32> for (u8, u8, u8, u8)[src]
impl FromBytesCastLazy<u32> for (u8, u8, u8, u8)impl FromBytesCastLazy<f32> for (u8, u8, u8, u8)[src]
impl FromBytesCastLazy<f32> for (u8, u8, u8, u8)impl FromBytesCastLazy<i64> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]
impl FromBytesCastLazy<i64> for (u8, u8, u8, u8, u8, u8, u8, u8)impl FromBytesCastLazy<u64> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]
impl FromBytesCastLazy<u64> for (u8, u8, u8, u8, u8, u8, u8, u8)impl FromBytesCastLazy<f64> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]
impl FromBytesCastLazy<f64> for (u8, u8, u8, u8, u8, u8, u8, u8)impl FromBytesCastLazy<isize> for (u8, u8, u8, u8)[src]
impl FromBytesCastLazy<isize> for (u8, u8, u8, u8)impl FromBytesCastLazy<usize> for (u8, u8, u8, u8)[src]
impl FromBytesCastLazy<usize> for (u8, u8, u8, u8)