[][src]Struct azul_core::id_tree::NodeDataContainer

pub struct NodeDataContainer<T> {
    pub internal: Vec<T>,
}

Fields

internal: Vec<T>

Implementations

impl<T> NodeDataContainer<T>[src]

pub const fn new(data: Vec<T>) -> Self[src]

pub fn len(&self) -> usize[src]

pub fn transform<U, F>(&self, closure: F) -> NodeDataContainer<U> where
    F: FnMut(&T, NodeId) -> U, 
[src]

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

pub fn iter(&self) -> Iter<T>[src]

pub fn iter_mut(&mut self) -> IterMut<T>[src]

pub fn linear_iter(&self) -> LinearIterator[src]

Trait Implementations

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

impl<T: Debug> Debug for NodeDataContainer<T>[src]

impl<T> Default for NodeDataContainer<T>[src]

impl<T: Eq> Eq for NodeDataContainer<T>[src]

impl<T: Hash> Hash for NodeDataContainer<T>[src]

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

type Output = T

The returned type after indexing.

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

impl<T: Ord> Ord for NodeDataContainer<T>[src]

impl<T: PartialEq> PartialEq<NodeDataContainer<T>> for NodeDataContainer<T>[src]

impl<T: PartialOrd> PartialOrd<NodeDataContainer<T>> for NodeDataContainer<T>[src]

impl<T> StructuralEq for NodeDataContainer<T>[src]

impl<T> StructuralPartialEq for NodeDataContainer<T>[src]

Auto Trait Implementations

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

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

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

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

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

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> 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.