[][src]Enum flexbuffers::BitWidth

#[repr(u8)]pub enum BitWidth {
    W8,
    W16,
    W32,
    W64,
}

Represents the size of Flexbuffers data.

Flexbuffers automatically compresses numbers to the smallest possible width (250u64 is stored as 250u8).

Variants

W8
W16
W32
W64

Implementations

impl BitWidth[src]

pub fn n_bytes(self) -> usize[src]

pub fn from_nbytes(n: impl Into<usize>) -> Option<Self>[src]

Trait Implementations

impl Clone for BitWidth[src]

impl Copy for BitWidth[src]

impl Debug for BitWidth[src]

impl Default for BitWidth[src]

impl<'de> Deserialize<'de> for BitWidth[src]

impl Eq for BitWidth[src]

impl From<f32> for BitWidth[src]

impl From<f64> for BitWidth[src]

impl From<i64> for BitWidth[src]

impl From<u64> for BitWidth[src]

impl From<usize> for BitWidth[src]

impl Ord for BitWidth[src]

impl PartialEq<BitWidth> for BitWidth[src]

impl PartialOrd<BitWidth> for BitWidth[src]

impl Serialize for BitWidth[src]

impl StructuralEq for BitWidth[src]

impl StructuralPartialEq for BitWidth[src]

impl TryFrom<u8> for BitWidth[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for BitWidth[src]

type Primitive = u8

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.