Struct thrift_codec::data::Set
source · pub struct Set { /* private fields */ }
Expand description
Set.
Note that internally this has the same representation with List
.
No duplicate elements are removed.
Implementations§
Methods from Deref<Target = Elements>§
sourcepub fn get(&self, index: usize) -> Option<DataRef<'_>>
pub fn get(&self, index: usize) -> Option<DataRef<'_>>
Returns the element placed at the specified index.
sourcepub fn iter(&self) -> ElementIter<'_> ⓘ
pub fn iter(&self) -> ElementIter<'_> ⓘ
Returns an iterator over the elements of this sequence.
Trait Implementations§
source§impl BinaryDecode for Set
impl BinaryDecode for Set
source§impl BinaryEncode for Set
impl BinaryEncode for Set
source§impl CompactDecode for Set
impl CompactDecode for Set
source§impl CompactEncode for Set
impl CompactEncode for Set
impl StructuralPartialEq for Set
Auto Trait Implementations§
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more