pub struct ScopedVec<T: Clone> { /* private fields */ }
Expand description
A ScopedVec
instance can either represent the root element or a
divergence of it. Refer to the crate’s documentation for usage
examples of the scoped-vec library.
Cloning a ScopedVec
will result in a reference to the same scope,
and adding a value to one of the cloned instances will result in
the value being added to all instances and available for all the
parent instances to iterate over.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ScopedVec<T>
impl<T> RefUnwindSafe for ScopedVec<T>
impl<T> Send for ScopedVec<T>
impl<T> Sync for ScopedVec<T>
impl<T> Unpin for ScopedVec<T>
impl<T> UnwindSafe for ScopedVec<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