pub struct Spare<'a, T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> Extend<T> for Spare<'_, T>
impl<T> Extend<T> for Spare<'_, T>
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for Spare<'a, T>
impl<'a, T> RefUnwindSafe for Spare<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Spare<'a, T>where
T: Send,
impl<'a, T> Sync for Spare<'a, T>where
T: Sync,
impl<'a, T> Unpin for Spare<'a, T>
impl<'a, T> !UnwindSafe for Spare<'a, T>
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