[][src]Enum peerrs_binarypack::binarypack::Unpacked

pub enum Unpacked {
    Uint8(u8),
    Uint16(u16),
    Uint32(u32),
    Uint64(u64),
    Int8(i8),
    Int16(i16),
    Int32(i32),
    Int64(i64),
    Float(f32),
    Double(f64),
    Bool(bool),
    Raw(Vec<u8>),
    String(String),
    Null,
    Undefined,
    Array(Vec<Unpacked>),
    Map(HashMap<Unpacked, Unpacked>),
}

An enum representing possible unpacked structures

Variants

Uint8(u8)
Uint16(u16)
Uint32(u32)
Uint64(u64)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Float(f32)
Double(f64)
Bool(bool)
Raw(Vec<u8>)
String(String)
Null
Undefined
Array(Vec<Unpacked>)

Implementations

impl Unpacked[src]

pub fn pack(&self) -> Vec<u8>[src]

Pack a value into the js-binarypack format

Trait Implementations

impl Clone for Unpacked[src]

impl Debug for Unpacked[src]

impl Eq for Unpacked[src]

impl Hash for Unpacked[src]

impl PartialEq<Unpacked> for Unpacked[src]

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