Struct nice_smile::pattern::PatternNode
source · pub struct PatternNode<'a> { /* private fields */ }Expand description
A node in a Pattern
Implementations§
source§impl PatternNode<'_>
impl PatternNode<'_>
sourcepub fn get_parent_indices(&self) -> Vec<usize>
pub fn get_parent_indices(&self) -> Vec<usize>
Get the indices of parents of the node
sourcepub fn get_parents(&self) -> Result<Vec<PatternNode<'_>>>
pub fn get_parents(&self) -> Result<Vec<PatternNode<'_>>>
Get the parents of the node
sourcepub fn get_child_indices(&self) -> Vec<usize>
pub fn get_child_indices(&self) -> Vec<usize>
Get the indices of children of the node
sourcepub fn get_children(&self) -> Result<Vec<PatternNode<'_>>>
pub fn get_children(&self) -> Result<Vec<PatternNode<'_>>>
Get the children of the node
sourcepub fn get_adjacent_indices(&self) -> Vec<usize>
pub fn get_adjacent_indices(&self) -> Vec<usize>
Get the indices of adjacent nodes to the node
sourcepub fn get_adjacent_nodes(&self) -> Result<Vec<PatternNode<'_>>>
pub fn get_adjacent_nodes(&self) -> Result<Vec<PatternNode<'_>>>
Get the adjacent nodes to the node
sourcepub fn has_incoming_edge(&self) -> bool
pub fn has_incoming_edge(&self) -> bool
Check if the node has an incoming edge
sourcepub fn has_outgoing_edge(&self) -> bool
pub fn has_outgoing_edge(&self) -> bool
Check if the node has an outgoing edge
Auto Trait Implementations§
impl<'a> Freeze for PatternNode<'a>
impl<'a> !RefUnwindSafe for PatternNode<'a>
impl<'a> !Send for PatternNode<'a>
impl<'a> !Sync for PatternNode<'a>
impl<'a> Unpin for PatternNode<'a>
impl<'a> !UnwindSafe for PatternNode<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more