[−][src]Struct scoped_vec::ScopedVec
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.
Methods
impl<T: Clone> ScopedVec<T>
[src]
pub fn new() -> Self
[src]
pub fn scope(&mut self) -> ScopedVec<T>
[src]
Create a new ScopedVec
as a child of this one.
pub fn push(&mut self, val: T)
[src]
ⓘImportant traits for ScopedVecIterator<'a, T>pub fn iter(&self) -> ScopedVecIterator<T>
[src]
ⓘImportant traits for ScopedVecIterator<'a, T>
impl<T: Clone + PartialEq> ScopedVec<T>
[src]
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ScopedVec<T>
impl<T> Send for ScopedVec<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Sync for ScopedVec<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for ScopedVec<T>
impl<T> UnwindSafe for ScopedVec<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,