Enum thrift_codec::data::Elements
[−]
[src]
pub enum Elements { Bool(Vec<bool>), I8(Vec<i8>), I16(Vec<i16>), I32(Vec<i32>), I64(Vec<i64>), Double(Vec<f64>), Binary(Vec<Vec<u8>>), Struct(Vec<Struct>), Map(Vec<Map>), Set(Vec<Set>), List(Vec<List>), }
A sequence of the values of a data kind.
Variants
Bool(Vec<bool>)
I8(Vec<i8>)
I16(Vec<i16>)
I32(Vec<i32>)
I64(Vec<i64>)
Double(Vec<f64>)
Binary(Vec<Vec<u8>>)
Struct(Vec<Struct>)
Map(Vec<Map>)
Set(Vec<Set>)
List(Vec<List>)
Methods
impl Elements
[src]
fn new(kind: DataKind) -> Self
[src]
Makes an empty sequence which can have the elements belonging to kind
.
fn get(&self, index: usize) -> Option<DataRef>
[src]
Returns the element placed at the specified index.
fn len(&self) -> usize
[src]
Returns the element count of this sequence.
fn is_empty(&self) -> bool
[src]
Returns true
if this sequence has no elements.
fn iter(&self) -> ElementIter
[src]
Returns an iterator over the elements of this sequence.
fn kind(&self) -> DataKind
[src]
Returns the kind of the elements in this sequence.
Trait Implementations
impl Debug for Elements
[src]
impl Clone for Elements
[src]
fn clone(&self) -> Elements
[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 Elements
[src]
fn eq(&self, __arg_0: &Elements) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Elements) -> bool
[src]
This method tests for !=
.