[−][src]Struct azul_core::id_tree::Arena
Fields
node_hierarchy: NodeHierarchy
node_data: NodeDataContainer<T>
Implementations
impl<T> Arena<T>
[src]
pub fn new() -> Arena<T>
[src]
pub fn with_capacity(cap: usize) -> Arena<T>
[src]
pub fn new_node(&mut self, data: T) -> NodeId
[src]
Create a new node from its associated data.
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn linear_iter(&self) -> LinearIterator
[src]
Return an iterator over the indices in the internal arenas Vec
pub fn append_arena(&mut self, other: &mut Arena<T>)
[src]
Appends another arena to the end of the current arena (by simply appending the two Vec of nodes) Can potentially mess up internal IDs, only use this if you know what you're doing
pub fn transform<U, F>(&self, closure: F) -> Arena<U> where
F: Fn(&T, NodeId) -> U,
[src]
F: Fn(&T, NodeId) -> U,
Transform keeps the relative order of parents / children
but transforms an ArenaNodeId
for the root is then valid for the newly created Arena<U>
, too.
Trait Implementations
impl<T: Clone> Clone for Arena<T>
[src]
impl<T: Debug> Debug for Arena<T>
[src]
impl<T: Default> Default for Arena<T>
[src]
impl<T: Eq> Eq for Arena<T>
[src]
impl<T: Hash> Hash for Arena<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: PartialEq> PartialEq<Arena<T>> for Arena<T>
[src]
impl<T> StructuralEq for Arena<T>
[src]
impl<T> StructuralPartialEq for Arena<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Arena<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Arena<T> where
T: Send,
T: Send,
impl<T> Sync for Arena<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Arena<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Arena<T> where
T: UnwindSafe,
T: UnwindSafe,
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> 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>,