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
Bool(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
Double(f64)
Binary(Vec<u8>)
Struct(Struct)
Map(Map)
Set(Set)
List(List)
Methods
impl Data
[src]
fn kind(&self) -> DataKind
[src]
Returns the kind of this data.
fn as_ref(&self) -> DataRef
[src]
Returns the reference to this data.
Trait Implementations
impl Debug for Data
[src]
impl Clone for Data
[src]
fn clone(&self) -> Data
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Data
[src]
fn eq(&self, __arg_0: &Data) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Data) -> bool
[src]
This method tests for !=
.