Struct neodyn_xc::format::SmallUint[][src]

pub struct SmallUint(_);

Helper for creating the inline encoding of a small unsigned integer, or that of a short array, map, or low-index interned string or blob.

Implementations

impl SmallUint[src]

pub const RANGE: RangeInclusive<u8>[src]

The range of values that fit in a SmallUint.

#[must_use]pub const fn encode(self, major: u8) -> u8[src]

Returns the encoded number as a single byte, using the specified major type for tagging it.

Trait Implementations

impl Clone for SmallUint[src]

impl Copy for SmallUint[src]

impl Debug for SmallUint[src]

impl Default for SmallUint[src]

impl Eq for SmallUint[src]

impl Hash for SmallUint[src]

impl Ord for SmallUint[src]

impl PartialEq<SmallUint> for SmallUint[src]

impl PartialOrd<SmallUint> for SmallUint[src]

impl StructuralEq for SmallUint[src]

impl StructuralPartialEq for SmallUint[src]

impl TryFrom<u64> for SmallUint[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<usize> for SmallUint[src]

type Error = ()

The type returned in the event of a conversion error.

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> CloneAny for T where
    T: Any + Clone
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[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.

impl<T> UnsafeAny for T where
    T: Any