pub trait IntReadable<E>where
    E: ByteOrder,{
    type ResultType;

    const READ_SIZE: usize;

    // Required method
    fn read(buf: &[u8]) -> Self::ResultType;
}
Expand description

E: [byteorder::LittleEndian] or [byteorder::BigEndian]

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn read(buf: &[u8]) -> Self::ResultType

Implementors§

source§

impl<E> IntReadable<E> for I8where E: ByteOrder,

source§

const READ_SIZE: usize = 1usize

§

type ResultType = i8

source§

impl<E> IntReadable<E> for I24where E: ByteOrder,

source§

const READ_SIZE: usize = 3usize

§

type ResultType = i32

source§

impl<E> IntReadable<E> for I32where E: ByteOrder,

source§

const READ_SIZE: usize = 4usize

§

type ResultType = i32

source§

impl<E> IntReadable<E> for I48where E: ByteOrder,

source§

const READ_SIZE: usize = 6usize

§

type ResultType = i64

source§

impl<E> IntReadable<E> for I64where E: ByteOrder,

source§

const READ_SIZE: usize = 8usize

§

type ResultType = i64

source§

impl<E> IntReadable<E> for I128where E: ByteOrder,

source§

const READ_SIZE: usize = 16usize

§

type ResultType = i128

source§

impl<E> IntReadable<E> for U8where E: ByteOrder,

source§

const READ_SIZE: usize = 1usize

§

type ResultType = u8

source§

impl<E> IntReadable<E> for U24where E: ByteOrder,

source§

const READ_SIZE: usize = 3usize

§

type ResultType = u32

source§

impl<E> IntReadable<E> for U32where E: ByteOrder,

source§

const READ_SIZE: usize = 4usize

§

type ResultType = u32

source§

impl<E> IntReadable<E> for U48where E: ByteOrder,

source§

const READ_SIZE: usize = 6usize

§

type ResultType = i64

source§

impl<E> IntReadable<E> for U64where E: ByteOrder,

source§

const READ_SIZE: usize = 8usize

§

type ResultType = u64

source§

impl<E> IntReadable<E> for U128where E: ByteOrder,

source§

const READ_SIZE: usize = 16usize

§

type ResultType = i128