[][src]Enum rmp::Marker

pub enum Marker {
    FixPos(u8),
    FixNeg(i8),
    Null,
    True,
    False,
    U8,
    U16,
    U32,
    U64,
    I8,
    I16,
    I32,
    I64,
    F32,
    F64,
    FixStr(u8),
    Str8,
    Str16,
    Str32,
    Bin8,
    Bin16,
    Bin32,
    FixArray(u8),
    Array16,
    Array32,
    FixMap(u8),
    Map16,
    Map32,
    FixExt1,
    FixExt2,
    FixExt4,
    FixExt8,
    FixExt16,
    Ext8,
    Ext16,
    Ext32,
    Reserved,
}

Format markers.

Variants

FixPos(u8)FixNeg(i8)NullTrueFalseU8U16U32U64I8I16I32I64F32F64FixStr(u8)Str8Str16Str32Bin8Bin16Bin32FixArray(u8)Array16Array32FixMap(u8)Map16Map32FixExt1FixExt2FixExt4FixExt8FixExt16Ext8Ext16Ext32Reserved

Methods

impl Marker[src]

pub fn from_u8(n: u8) -> Marker[src]

Construct a msgpack marker from a single byte.

pub fn to_u8(&self) -> u8[src]

Converts a marker object into a single-byte representation.

Trait Implementations

impl From<u8> for Marker[src]

impl Into<u8> for Marker[src]

impl PartialEq<Marker> for Marker[src]

impl Clone for Marker[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Marker[src]

impl Debug for Marker[src]

Auto Trait Implementations

impl Send for Marker

impl Unpin for Marker

impl Sync for Marker

impl UnwindSafe for Marker

impl RefUnwindSafe for Marker

Blanket Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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