[][src]Struct bitserde::BitContainer

pub struct BitContainer<T: ContainerSize, O: BitOrder, S: BitStore>(_, _);

This represents a collection of bits that have a specific capacity defined which is used to deserialize and serialize the bit data at runtime.

Implementations

impl<T: ContainerSize, O: BitOrder, S: BitStore> BitContainer<T, O, S> where
    BitSlice<O, S>: BitField
[src]

pub fn as_byte(&self) -> Result<u8>[src]

If the container is 8 bits or under, it can represent the bit vector as a single byte.

Trait Implementations

impl<T: Debug + ContainerSize, O: Debug + BitOrder, S: Debug + BitStore> Debug for BitContainer<T, O, S>[src]

impl<'de, T: ContainerSize, O: BitOrder, S: BitStore> Deserialize<'de> for BitContainer<T, O, S>[src]

impl<T: PartialEq + ContainerSize, O: PartialEq + BitOrder, S: PartialEq + BitStore> PartialEq<BitContainer<T, O, S>> for BitContainer<T, O, S>[src]

impl<T: ContainerSize, O: BitOrder, X: BitStore> Serialize for BitContainer<T, O, X>[src]

impl<T: ContainerSize, O: BitOrder, S: BitStore> StructuralPartialEq for BitContainer<T, O, S>[src]

Auto Trait Implementations

impl<T, O, S> RefUnwindSafe for BitContainer<T, O, S> where
    O: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, O, S> Send for BitContainer<T, O, S> where
    T: Send

impl<T, O, S> Sync for BitContainer<T, O, S> where
    T: Sync

impl<T, O, S> Unpin for BitContainer<T, O, S> where
    T: Unpin

impl<T, O, S> UnwindSafe for BitContainer<T, O, S> where
    O: RefUnwindSafe,
    S: RefUnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.