[−][src]Struct rin::util::idtree::Arena
Methods
impl<T> Arena<T>
[src]
impl<T> Arena<T>
pub fn new() -> Arena<T>
[src]
pub fn new() -> Arena<T>
pub fn new_node(&mut self, data: T) -> NodeIdMut<T>
[src]
pub fn new_node(&mut self, data: T) -> NodeIdMut<T>
Create a new node from its associated data.
pub fn get(&self, id: NodeId) -> NodeIdRef<T>
[src]
pub fn get(&self, id: NodeId) -> NodeIdRef<T>
pub fn get_mut(&mut self, id: NodeId) -> NodeIdMut<T>
[src]
pub fn get_mut(&mut self, id: NodeId) -> NodeIdMut<T>
pub fn contains(&self, id: NodeId) -> bool
[src]
pub fn contains(&self, id: NodeId) -> bool
pub fn remove<N: Into<NodeId>>(&mut self, id: N) -> Result<(), ()>
[src]
pub fn remove<N: Into<NodeId>>(&mut self, id: N) -> Result<(), ()>
pub fn remove_tree<N: Into<NodeId>>(&mut self, id: N) -> Result<(), ()>
[src]
pub fn remove_tree<N: Into<NodeId>>(&mut self, id: N) -> Result<(), ()>
pub fn all_nodes<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Node<T>> + 'a>
[src]
pub fn all_nodes<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Node<T>> + 'a>
pub fn all_nodes_mut<'a>(
&'a mut self
) -> Box<dyn Iterator<Item = &'a mut Node<T>> + 'a>
[src]
pub fn all_nodes_mut<'a>(
&'a mut self
) -> Box<dyn Iterator<Item = &'a mut Node<T>> + 'a>
pub fn into_vec(self) -> Vec<Node<T>>
[src]
pub fn into_vec(self) -> Vec<Node<T>>
Trait Implementations
impl<T: Clone> Clone for Arena<T>
[src]
impl<T: Clone> Clone for Arena<T>
fn clone(&self) -> Arena<T>
[src]
fn clone(&self) -> Arena<T>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Index<NodeId> for Arena<T>
[src]
impl<T> Index<NodeId> for Arena<T>
type Output = Node<T>
The returned type after indexing.
fn index(&self, node: NodeId) -> &Node<T>
[src]
fn index(&self, node: NodeId) -> &Node<T>
impl<T> IndexMut<NodeId> for Arena<T>
[src]
impl<T> IndexMut<NodeId> for Arena<T>
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: Any,
[src]
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<V> IntoVec for V
[src]
impl<V> IntoVec for V
impl<V> IntoPnt for V
[src]
impl<V> IntoPnt for V
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
[src]
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
[src]
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
[src]
fn from_subset(element: &SS) -> SP