[][src]Struct scoped_vec::ScopedVec

pub struct ScopedVec<T: Clone> { /* fields omitted */ }

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]

impl<T: Clone + PartialEq> ScopedVec<T>[src]

pub fn contains(&self, val: &T) -> bool[src]

Trait Implementations

impl<T: Clone> Clone for ScopedVec<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ScopedVec<T>

impl<T> Send for ScopedVec<T> where
    T: Send + Sync

impl<T> Sync for ScopedVec<T> where
    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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.