Enum thrift_codec::data::Data [] [src]

pub enum Data {
    Bool(bool),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    Double(f64),
    Binary(Vec<u8>),
    Struct(Struct),
    Map(Map),
    Set(Set),
    List(List),
}

Data.

Variants

Methods

impl Data
[src]

[src]

Returns the kind of this data.

[src]

Returns the reference to this data.

Trait Implementations

impl Debug for Data
[src]

[src]

Formats the value using the given formatter.

impl Clone for Data
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Data
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<bool> for Data
[src]

[src]

Performs the conversion.

impl From<i8> for Data
[src]

[src]

Performs the conversion.

impl From<i16> for Data
[src]

[src]

Performs the conversion.

impl From<i32> for Data
[src]

[src]

Performs the conversion.

impl From<i64> for Data
[src]

[src]

Performs the conversion.

impl From<f64> for Data
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for Data
[src]

[src]

Performs the conversion.

impl From<String> for Data
[src]

[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for Data
[src]

[src]

Performs the conversion.

impl From<Vec<u8>> for Data
[src]

[src]

Performs the conversion.

impl From<Struct> for Data
[src]

[src]

Performs the conversion.

impl From<Map> for Data
[src]

[src]

Performs the conversion.

impl From<Set> for Data
[src]

[src]

Performs the conversion.

impl From<List> for Data
[src]

[src]

Performs the conversion.

impl BinaryEncode for Data
[src]

[src]

Encodes an object.

impl CompactEncode for Data
[src]

[src]

Encodes an object.