[−][src]Struct nobility::bin_decode::NbtList
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]
T: Debug,
impl<T> Index<usize> for NbtList<T>
[src]
type Output = T
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
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]
T: RefUnwindSafe,
impl<T> Send for NbtList<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for NbtList<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for NbtList<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for NbtList<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
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>,