[][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)
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

Implementations

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 Clone for Marker[src]

impl Copy for Marker[src]

impl Debug for Marker[src]

impl From<u8> for Marker[src]

impl Into<u8> for Marker[src]

impl PartialEq<Marker> for Marker[src]

impl StructuralPartialEq for Marker[src]

Auto Trait Implementations

impl RefUnwindSafe for Marker

impl Send for Marker

impl Sync for Marker

impl Unpin for Marker

impl UnwindSafe for Marker

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> 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.