pub struct Array { /* private fields */ }Implementations§
Source§impl Array
impl Array
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push(&mut self, object: impl Into<Object>)
pub fn pop(&mut self) -> Option<Object>
pub fn insert(&mut self, index: usize, object: impl Into<Object>)
pub fn remove(&mut self, index: usize) -> Object
pub fn get(&self, index: usize) -> Option<&Object>
pub fn get_mut(&mut self, index: usize) -> Option<&mut Object>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn iter(&self) -> impl Iterator<Item = &Object>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Object>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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