Enum thrift_codec::data::DataRef [] [src]

pub enum DataRef<'a> {
    Bool(&'a bool),
    I8(&'a i8),
    I16(&'a i16),
    I32(&'a i32),
    I64(&'a i64),
    Double(&'a f64),
    Binary(&'a [u8]),
    Struct(&'a Struct),
    Map(&'a Map),
    Set(&'a Set),
    List(&'a List),
}

The reference to a Data.

Variants

Methods

impl<'a> DataRef<'a>
[src]

[src]

Returns the kind of this data.

[src]

Returns the owned (cloned) version of this data.

Trait Implementations

impl<'a> Debug for DataRef<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Clone for DataRef<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq for DataRef<'a>
[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<'a> BinaryEncode for DataRef<'a>
[src]

[src]

Encodes an object.

impl<'a> CompactEncode for DataRef<'a>
[src]

[src]

Encodes an object.