pub struct AnyList(/* private fields */);Implementations§
Source§impl AnyList
impl AnyList
pub fn new<T: Any>() -> Self
pub fn push<T: Any>(&mut self, value: T)
pub fn insert<T: Any>(&mut self, index: usize, value: T)
pub fn pop<T: Any>(&mut self) -> Option<T>
pub fn remove<T: Any>(&mut self, index: usize) -> T
pub fn get<T: Any>(&self, index: usize) -> Option<&T>
pub fn get_mut<T: Any>(&mut self, index: usize) -> Option<&mut T>
pub fn untyped_pop(&mut self)
pub fn untyped_remove(&mut self, index: usize)
pub fn as_slice<T: Any>(&self) -> &[T]
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
Auto Trait Implementations§
impl Freeze for AnyList
impl !RefUnwindSafe for AnyList
impl !Send for AnyList
impl !Sync for AnyList
impl Unpin for AnyList
impl !UnwindSafe for AnyList
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