[][src]Trait lazy_bytes_cast::from::FromBytesCastLazy

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.

Loading content...

Implementations on Foreign Types

impl FromBytesCastLazy<u32> for [u8; 4][src]

impl FromBytesCastLazy<i32> for [u8; 4][src]

impl FromBytesCastLazy<f32> for [u8; 4][src]

impl FromBytesCastLazy<u64> for [u8; 8][src]

impl FromBytesCastLazy<i64> for [u8; 8][src]

impl FromBytesCastLazy<f64> for [u8; 8][src]

impl FromBytesCastLazy<i128> for [u8; 16][src]

impl FromBytesCastLazy<u128> for [u8; 16][src]

impl FromBytesCastLazy<u16> for [u8; 2][src]

impl FromBytesCastLazy<i16> for [u8; 2][src]

impl FromBytesCastLazy<usize> for [u8; 8][src]

impl FromBytesCastLazy<isize> for [u8; 8][src]

impl FromBytesCastLazy<i16> for (u8, u8)[src]

impl FromBytesCastLazy<u16> for (u8, u8)[src]

impl FromBytesCastLazy<i32> for (u8, u8, u8, u8)[src]

impl FromBytesCastLazy<u32> for (u8, u8, u8, u8)[src]

impl FromBytesCastLazy<f32> for (u8, u8, u8, u8)[src]

impl FromBytesCastLazy<i64> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]

impl FromBytesCastLazy<u64> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]

impl FromBytesCastLazy<f64> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]

impl FromBytesCastLazy<i128> for (u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8)[src]

impl FromBytesCastLazy<u128> for (u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8)[src]

impl FromBytesCastLazy<isize> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]

impl FromBytesCastLazy<usize> for (u8, u8, u8, u8, u8, u8, u8, u8)[src]

Loading content...

Implementors

Loading content...