Struct rin::blender::scene_data::idtree::Arena[][src]

pub struct Arena<T> { /* fields omitted */ }

Implementations

impl<T> Arena<T>[src]

pub fn new() -> Arena<T>[src]

pub fn new_node(&mut self, data: T) -> NodeIdMut<'_, T>[src]

Create a new node from its associated data.

pub fn get(&self, id: NodeId) -> NodeIdRef<'_, T>[src]

pub fn get_mut(&mut self, id: NodeId) -> NodeIdMut<'_, T>[src]

pub fn contains(&self, id: NodeId) -> bool[src]

pub fn remove<N>(&mut self, id: N) -> Result<T, ()> where
    N: Into<NodeId>, 
[src]

pub fn remove_tree<N>(&mut self, id: N) -> Result<(), ()> where
    N: Into<NodeId>, 
[src]

pub fn all_nodes(&'a self) -> Box<dyn Iterator<Item = &'a Node<T>> + 'a, Global>[src]

pub fn all_nodes_mut(
    &'a mut self
) -> Box<dyn Iterator<Item = &'a mut Node<T>> + 'a, Global>
[src]

pub fn into_vec(self) -> Vec<Node<T>, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Trait Implementations

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

impl<'de, T> Deserialize<'de> for Arena<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Index<NodeId> for Arena<T>[src]

type Output = Node<T>

The returned type after indexing.

impl<T> IndexMut<NodeId> for Arena<T>[src]

impl<T> Serialize for Arena<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Arena<T> where
    T: RefUnwindSafe

impl<T> Send for Arena<T> where
    T: Send

impl<T> Sync for Arena<T> where
    T: Sync

impl<T> Unpin for Arena<T> where
    T: Unpin

impl<T> UnwindSafe for Arena<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]