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