Struct light_phylogeny::ArenaTree [−][src]
Structure ArenaTree.
Taken from https://dev.to/deciduously/no-more-tears-no-more-knots-arena-allocated-trees-in-rust-44k6
Ben Lovy https://deciduously.com/
Fields
arena: Vec<Noeud<T>>
Implementations
impl<T> ArenaTree<T> where
T: PartialEq,
[src]
impl<T> ArenaTree<T> where
T: PartialEq,
[src]pub fn node(&mut self, val: T) -> usize
[src]
pub fn node(&mut self, val: T) -> usize
[src]Add a node and send its new index. If the node already exists, send its index.
pub fn new_node(&mut self, val: T) -> usize
[src]
pub fn new_node(&mut self, val: T) -> usize
[src]Add a node and send its new index. If the node already exists, send a panic alert.
pub fn get_index(&mut self, name: String) -> Result<usize, usize>
[src]
pub fn get_index(&mut self, name: String) -> Result<usize, usize>
[src]Get index of a node from its name
pub fn get_largest_x(&mut self) -> f32
[src]
pub fn get_largest_x(&mut self) -> f32
[src]Get the largest x value of a tree.
pub fn get_largest_y(&mut self) -> f32
[src]
pub fn get_largest_y(&mut self) -> f32
[src]Get the largest y value of a tree.
pub fn get_smallest_x(&mut self) -> f32
[src]
pub fn get_smallest_x(&mut self) -> f32
[src]Get the smallest x value of a tree.
pub fn get_smallest_y(&mut self) -> f32
[src]
pub fn get_smallest_y(&mut self) -> f32
[src]Get the smallest y value of a tree.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ArenaTree<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ArenaTree<T> where
T: Send,
T: Send,
impl<T> Sync for ArenaTree<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ArenaTree<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ArenaTree<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,