[−][src]Enum nobility::bin_decode::List
An enum that represents all possible list types.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Short(ShortList<'a>)
Int(IntList<'a>)
Long(LongList<'a>)
Float(FloatList<'a>)
Double(DoubleList<'a>)
ByteArray(ByteArrayList<'a>)
String(StringList<'a>)
Compound(CompoundList<'a>)
List(ListList<'a>)
IntArray(IntArrayList<'a>)
LongArray(LongArrayList<'a>)
Implementations
impl<'a> List<'a>
[src]
pub fn len(&self) -> usize
[src]
Returns the number of elements in the list.
pub fn is_empty(&self) -> bool
[src]
Returns true if there are no elements in the list.
pub fn get(&self, index: usize) -> Option<Tag<'a>>
[src]
Allows the list to be indexed without creating a case for each possible list type. The return value is wrapped in a Tag.
Notes
CompoundList and ListList will both result in a clone being performed.
pub fn iter(&self) -> ListIter<'_>ⓘ
[src]
Returns an iterator over the elements of the list, yielding a Tag.
Trait Implementations
impl<'a> Clone for List<'a>
[src]
impl<'a> Debug for List<'a>
[src]
impl<'a> PartialEq<List<'a>> for List<'a>
[src]
impl<'a> StructuralPartialEq for List<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for List<'a>
[src]
impl<'a> Send for List<'a>
[src]
impl<'a> Sync for List<'a>
[src]
impl<'a> Unpin for List<'a>
[src]
impl<'a> UnwindSafe for List<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,