pub struct IntVector { /* private fields */ }
Implementations§
Source§impl IntVector
impl IntVector
pub fn new() -> Self
pub fn push(&mut self, v: i32)
pub fn get(&self, idx: usize) -> Option<&i32>
pub fn get_mut(&self, idx: usize) -> Option<&mut i32>
pub fn pop(&mut self) -> Option<i32>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntVector
impl RefUnwindSafe for IntVector
impl !Send for IntVector
impl !Sync for IntVector
impl Unpin for IntVector
impl UnwindSafe for IntVector
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