[][src]Trait bitstream_reader::BitSize

pub trait BitSize {
    fn bit_size() -> usize;
}

Trait to get the number of bits needed to read types that can be read from a stream without requiring the size to be configured.

Required methods

fn bit_size() -> usize

How many bits are required to read this type

Loading content...

Implementations on Foreign Types

impl BitSize for u8[src]

impl BitSize for u16[src]

impl BitSize for u32[src]

impl BitSize for u64[src]

impl BitSize for u128[src]

impl BitSize for i8[src]

impl BitSize for i16[src]

impl BitSize for i32[src]

impl BitSize for i64[src]

impl BitSize for i128[src]

impl BitSize for NonZeroU8[src]

impl BitSize for NonZeroU16[src]

impl BitSize for NonZeroU32[src]

impl BitSize for NonZeroU64[src]

impl BitSize for NonZeroU128[src]

impl BitSize for f32[src]

impl BitSize for f64[src]

impl BitSize for bool[src]

impl<T: BitSize> BitSize for Rc<T>[src]

impl<T: BitSize> BitSize for Arc<T>[src]

impl<T: BitSize> BitSize for Box<T>[src]

impl<T1: BitSize, T2: BitSize> BitSize for (T1, T2)[src]

impl<T1: BitSize, T2: BitSize, T3: BitSize> BitSize for (T1, T2, T3)[src]

impl<T1: BitSize, T2: BitSize, T3: BitSize, T4: BitSize> BitSize for (T1, T2, T3, T4)[src]

impl<T: BitSize> BitSize for Option<T>[src]

Loading content...

Implementors

impl<T: BitRead<E> + BitSize, E: Endianness> BitSize for LazyBitRead<T, E>[src]

Loading content...