Struct actividadSemana20::List
source · pub struct List<T> { /* private fields */ }
Implementations§
source§impl<T> List<T>
impl<T> List<T>
pub fn new() -> Self
pub fn push(&mut self, item: T)
pub fn pop(&mut self) -> Option<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn index(&self, value: T) -> Option<usize>
pub fn get(&self, index: usize) -> Option<&T>
pub fn insert(&mut self, value: T, index: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
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> UnwindSafe for List<T>where
T: UnwindSafe + 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