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
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)
Methods
impl<'a> DataRef<'a>
[src]
fn kind(&self) -> DataKind
[src]
Returns the kind of this data.
fn to_owned(&self) -> Data
[src]
Returns the owned (cloned) version of this data.
Trait Implementations
impl<'a> Debug for DataRef<'a>
[src]
impl<'a> Clone for DataRef<'a>
[src]
fn clone(&self) -> DataRef<'a>
[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<'a> PartialEq for DataRef<'a>
[src]
fn eq(&self, __arg_0: &DataRef<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataRef<'a>) -> bool
[src]
This method tests for !=
.