[][src]Struct nobility::bin_decode::NbtList

pub struct NbtList<T> { /* fields omitted */ }

Implementation for lists whose elements do not have a fixed size.

Implementations

impl<T> NbtList<T>[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<&T>[src]

If len() > index >= 0, returns Some, otherwise returns None.

pub fn into_vec(self) -> Vec<T>[src]

Converts into the underlying vector.

pub fn iter(&self) -> SliceIter<'_, T>[src]

Returns an iterator over the elements of the list.

pub fn as_slice(&self) -> &[T][src]

Trait Implementations

impl<T: Clone> Clone for NbtList<T>[src]

impl<T> Debug for NbtList<T> where
    T: Debug
[src]

impl<T> Index<usize> for NbtList<T>[src]

type Output = T

The returned type after indexing.

impl<T: PartialEq> PartialEq<NbtList<T>> for NbtList<T>[src]

impl<T> StructuralPartialEq for NbtList<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for NbtList<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for NbtList<T> where
    T: Send
[src]

impl<T> Sync for NbtList<T> where
    T: Sync
[src]

impl<T> Unpin for NbtList<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for NbtList<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.