pub struct ExtendRef<'a, T>(pub &'a mut T);
Tuple Fields§
§0: &'a mut T
Trait Implementations§
Source§impl<'a, A, T: Extend<A>> Extend<A> for ExtendRef<'a, T>
impl<'a, A, T: Extend<A>> Extend<A> for ExtendRef<'a, T>
Source§fn extend<U>(&mut self, iter: U)where
U: IntoIterator<Item = A>,
fn extend<U>(&mut self, iter: U)where
U: IntoIterator<Item = A>,
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 ExtendRef<'a, T>
impl<'a, T> RefUnwindSafe for ExtendRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ExtendRef<'a, T>where
T: Send,
impl<'a, T> Sync for ExtendRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for ExtendRef<'a, T>
impl<'a, T> !UnwindSafe for ExtendRef<'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