[−][src]Struct rin::util::idtree::NodeId
A node identifier within a particular Arena
.
Methods
impl NodeId
[src]
impl NodeId
ⓘImportant traits for Ancestors<'a, T>pub fn ancestors<T>(self, arena: &Arena<T>) -> Ancestors<T>
[src]
pub fn ancestors<T>(self, arena: &Arena<T>) -> Ancestors<T>
Return an iterator of references to this node and its ancestors.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for PrecedingSiblings<'a, T>pub fn preceding_siblings<T>(self, arena: &Arena<T>) -> PrecedingSiblings<T>
[src]
pub fn preceding_siblings<T>(self, arena: &Arena<T>) -> PrecedingSiblings<T>
Return an iterator of references to this node and the siblings before it.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for FollowingSiblings<'a, T>pub fn following_siblings<T>(self, arena: &Arena<T>) -> FollowingSiblings<T>
[src]
pub fn following_siblings<T>(self, arena: &Arena<T>) -> FollowingSiblings<T>
Return an iterator of references to this node and the siblings after it.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for Children<'a, T>pub fn children<T>(self, arena: &Arena<T>) -> Children<T>
[src]
pub fn children<T>(self, arena: &Arena<T>) -> Children<T>
Return an iterator of references to this node’s children.
ⓘImportant traits for ReverseChildren<'a, T>pub fn reverse_children<T>(self, arena: &Arena<T>) -> ReverseChildren<T>
[src]
pub fn reverse_children<T>(self, arena: &Arena<T>) -> ReverseChildren<T>
Return an iterator of references to this node’s children, in reverse order.
ⓘImportant traits for Descendants<'a, T>pub fn descendants<T>(self, arena: &Arena<T>) -> Descendants<T>
[src]
pub fn descendants<T>(self, arena: &Arena<T>) -> Descendants<T>
Return an iterator of references to this node and its descendants, in tree order.
Parent nodes appear before the descendants.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for Traverse<'a, T>pub fn traverse<T>(self, arena: &Arena<T>) -> Traverse<T>
[src]
pub fn traverse<T>(self, arena: &Arena<T>) -> Traverse<T>
Return an iterator of references to this node and its descendants, in tree order.
ⓘImportant traits for ReverseTraverse<'a, T>pub fn reverse_traverse<T>(self, arena: &Arena<T>) -> ReverseTraverse<T>
[src]
pub fn reverse_traverse<T>(self, arena: &Arena<T>) -> ReverseTraverse<T>
Return an iterator of references to this node and its descendants, in tree order.
pub fn detach<T>(self, arena: &mut Arena<T>) -> NodeIdMut<T>
[src]
pub fn detach<T>(self, arena: &mut Arena<T>) -> NodeIdMut<T>
Detach a node from its parent and siblings. Children are not affected.
pub fn append<T>(self, new_child: NodeId, arena: &mut Arena<T>) -> NodeIdMut<T>
[src]
pub fn append<T>(self, new_child: NodeId, arena: &mut Arena<T>) -> NodeIdMut<T>
Append a new child to this node, after existing children.
pub fn append_new<T>(self, new_data: T, arena: &mut Arena<T>) -> NodeIdMut<T>
[src]
pub fn append_new<T>(self, new_data: T, arena: &mut Arena<T>) -> NodeIdMut<T>
pub fn prepend<T>(self, new_child: NodeId, arena: &mut Arena<T>) -> NodeIdMut<T>
[src]
pub fn prepend<T>(self, new_child: NodeId, arena: &mut Arena<T>) -> NodeIdMut<T>
Prepend a new child to this node, before existing children.
pub fn prepend_new<T>(self, new_data: T, arena: &mut Arena<T>) -> NodeIdMut<T>
[src]
pub fn prepend_new<T>(self, new_data: T, arena: &mut Arena<T>) -> NodeIdMut<T>
pub fn insert_after<T>(
self,
new_sibling: NodeId,
arena: &mut Arena<T>
) -> NodeIdMut<T>
[src]
pub fn insert_after<T>(
self,
new_sibling: NodeId,
arena: &mut Arena<T>
) -> NodeIdMut<T>
Insert a new sibling after this node.
pub fn insert_after_new<T>(
self,
new_data: T,
arena: &mut Arena<T>
) -> NodeIdMut<T>
[src]
pub fn insert_after_new<T>(
self,
new_data: T,
arena: &mut Arena<T>
) -> NodeIdMut<T>
pub fn insert_before<T>(
self,
new_sibling: NodeId,
arena: &mut Arena<T>
) -> NodeIdMut<T>
[src]
pub fn insert_before<T>(
self,
new_sibling: NodeId,
arena: &mut Arena<T>
) -> NodeIdMut<T>
Insert a new sibling before this node.
pub fn insert_before_new<T>(
self,
new_data: T,
arena: &mut Arena<T>
) -> NodeIdMut<T>
[src]
pub fn insert_before_new<T>(
self,
new_data: T,
arena: &mut Arena<T>
) -> NodeIdMut<T>
Trait Implementations
impl PartialEq<NodeId> for NodeId
[src]
impl PartialEq<NodeId> for NodeId
impl<T> From<Node<T>> for NodeId
[src]
impl<T> From<Node<T>> for NodeId
impl<'a, T> From<NodeIdMut<'a, T>> for NodeId
[src]
impl<'a, T> From<NodeIdMut<'a, T>> for NodeId
impl<'a, T> From<NodeIdRef<'a, T>> for NodeId
[src]
impl<'a, T> From<NodeIdRef<'a, T>> for NodeId
impl Clone for NodeId
[src]
impl Clone for NodeId
fn clone(&self) -> NodeId
[src]
fn clone(&self) -> NodeId
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for NodeId
[src]
impl Copy for NodeId
impl Eq for NodeId
[src]
impl Eq for NodeId
impl Debug for NodeId
[src]
impl Debug for NodeId
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 = !
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
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> IntoPnt for T where
T: Scalar,
[src]
impl<T> IntoPnt for T where
T: Scalar,
impl<T> IntoPnt for T where
T: Scalar,
[src]
impl<T> IntoPnt for T where
T: Scalar,
impl<T> IntoPnt for T where
T: Scalar,
[src]
impl<T> IntoPnt for T where
T: Scalar,
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
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