pub struct AnyList { /* private fields */ }Implementations§
source§impl AnyList
impl AnyList
pub fn new<T: Any>() -> AnyList
pub fn panic_if_wrong_type<T: Any>(&self)
pub fn reserve<T: Any>(&mut self, capacity: usize)
pub fn index<T: Any>(&self, index: usize) -> &T
pub fn index_mut<T: Any>(&mut self, index: usize) -> &mut T
pub fn index_unchecked<T: Any>(&self, index: usize) -> &T
pub fn index_mut_unchecked<T: Any>(&mut self, index: usize) -> &mut T
pub fn push<T: Any>(&mut self, item: T)
pub fn pop(&mut self)
pub fn remove(&mut self, index: usize)
pub fn insert<T: Any>(&mut self, index: usize, item: T)
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
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