pub struct List<T> { /* private fields */ }Implementations§
Source§impl<T> List<T>where
T: State,
impl<T> List<T>where
T: State,
pub const fn empty() -> List<T>
pub fn get(&self, index: usize) -> Option<&Value<T>>
pub fn get_mut(&mut self, index: usize) -> Option<&mut Value<T>>
pub fn iter(&self) -> impl Iterator<Item = &Value<T>>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Value<T>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<T> FromIterator<T> for List<T>where
T: State,
impl<T> FromIterator<T> for List<T>where
T: State,
Source§impl<T> State for List<T>where
T: State,
impl<T> State for List<T>where
T: State,
fn type_info(&self) -> Type
fn as_any_list(&self) -> Option<&(dyn AnyList + 'static)>
fn as_int(&self) -> Option<i64>
fn as_float(&self) -> Option<f64>
fn as_hex(&self) -> Option<Hex>
fn as_color(&self) -> Option<Color>
fn as_char(&self) -> Option<char>
fn as_str(&self) -> Option<&str>
fn as_bool(&self) -> Option<bool>
fn as_any_map(&self) -> Option<&(dyn AnyMap + 'static)>
fn as_maybe(&self) -> Option<&dyn AnyMaybe>
Auto Trait Implementations§
impl<T> Freeze for List<T>
impl<T> RefUnwindSafe for List<T>where
T: RefUnwindSafe,
impl<T> !Send for List<T>
impl<T> !Sync for List<T>
impl<T> Unpin for List<T>
impl<T> UnsafeUnpin for List<T>
impl<T> UnwindSafe for List<T>where
T: RefUnwindSafe,
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