Trait rustcn_ui::ReadableVecExt 
source · pub trait ReadableVecExt<T>: Readable<Target = Vec<T>>where
    T: 'static,{
    // Provided methods
    fn len(&self) -> usize { ... }
    fn is_empty(&self) -> bool { ... }
    fn first(&self) -> Option<<Self::Storage as AnyStorage>::Ref<T>> { ... }
    fn last(&self) -> Option<<Self::Storage as AnyStorage>::Ref<T>> { ... }
    fn get(&self, index: usize) -> Option<<Self::Storage as AnyStorage>::Ref<T>> { ... }
    fn iter(&self) -> ReadableValueIterator<'_, Self> ⓘ
       where Self: Sized { ... }
}Expand description
An extension trait for Readable<Vec
Provided Methods§
sourcefn first(&self) -> Option<<Self::Storage as AnyStorage>::Ref<T>>
 
fn first(&self) -> Option<<Self::Storage as AnyStorage>::Ref<T>>
Get the first element of the inner vector.
sourcefn last(&self) -> Option<<Self::Storage as AnyStorage>::Ref<T>>
 
fn last(&self) -> Option<<Self::Storage as AnyStorage>::Ref<T>>
Get the last element of the inner vector.
sourcefn get(&self, index: usize) -> Option<<Self::Storage as AnyStorage>::Ref<T>>
 
fn get(&self, index: usize) -> Option<<Self::Storage as AnyStorage>::Ref<T>>
Get the element at the given index of the inner vector.
sourcefn iter(&self) -> ReadableValueIterator<'_, Self> ⓘwhere
    Self: Sized,
 
fn iter(&self) -> ReadableValueIterator<'_, Self> ⓘwhere
    Self: Sized,
Get an iterator over the values of the inner vector.
Object Safety§
This trait is not object safe.