Struct thrift_codec::data::List
source · pub struct List { /* private fields */ }
Expand description
List.
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 List
impl BinaryDecode for List
source§impl BinaryEncode for List
impl BinaryEncode for List
source§impl CompactDecode for List
impl CompactDecode for List
source§impl CompactEncode for List
impl CompactEncode for List
source§impl PartialEq for List
impl PartialEq for List
impl StructuralPartialEq for List
Auto Trait Implementations§
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
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