pub struct SList<T> { /* private fields */ }Implementations§
source§impl<T> SList<T>
impl<T> SList<T>
pub fn new() -> SList<T>
pub fn from_vec(values: Vec<T>) -> SList<T>
pub fn from_slice(values: &[T]) -> SList<T>where
T: Clone,
pub fn append(&mut self, data: T)
pub fn prepend(&mut self, data: T)
pub fn nth(&self, n: u32) -> &T
pub fn last(&self) -> &T
pub fn insert(&mut self, data: T, position: i32)
pub fn concat(&mut self, list: SList<T>)
pub fn reverse(&mut self)
pub fn iter(&self) -> SElem<'_, T> ⓘ
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn extend<It: IntoIterator<Item = T>>(&mut self, it: It)
Trait Implementations§
source§impl<T> FromIterator<T> for SList<T>
impl<T> FromIterator<T> for SList<T>
Auto Trait Implementations§
impl<T> Freeze for SList<T>
impl<T> RefUnwindSafe for SList<T>where
T: RefUnwindSafe,
impl<T> !Send for SList<T>
impl<T> !Sync for SList<T>
impl<T> Unpin for SList<T>where
T: Unpin,
impl<T> UnwindSafe for SList<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)