Struct thrift_codec::data::List
[−]
[src]
pub struct List { /* fields omitted */ }
List.
Methods
impl List
[src]
Methods from Deref<Target = Elements>
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 List
[src]
impl Clone for List
[src]
fn clone(&self) -> List
[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 List
[src]
fn eq(&self, __arg_0: &List) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &List) -> bool
[src]
This method tests for !=
.
impl Deref for List
[src]
type Target = Elements
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl From<Vec<bool>> for List
[src]
impl From<Vec<i8>> for List
[src]
impl From<Vec<i16>> for List
[src]
impl From<Vec<i32>> for List
[src]
impl From<Vec<i64>> for List
[src]
impl From<Vec<f64>> for List
[src]
impl From<Vec<Vec<u8>>> for List
[src]
impl From<Vec<Struct>> for List
[src]
impl From<Vec<Map>> for List
[src]
impl From<Vec<Set>> for List
[src]
impl From<Vec<List>> for List
[src]
impl BinaryDecode for List
[src]
fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>
[src]
Decodes an object.
impl CompactDecode for List
[src]
fn compact_decode<R: Read>(reader: &mut R) -> Result<Self>
[src]
Decodes an object.