[−][src]Trait zamm_yin::node_wrappers::BaseNodeTrait
All low-level wrappers will have these functions available.
Required methods
pub fn set_value(&mut self, value: Rc<dyn KBValue>)
[src]
Associate this node with a value.
pub fn value(&self) -> Option<Rc<dyn KBValue>>
[src]
Retrieve the value associated with this node.
pub fn add_flag(&mut self, flag_type: usize)
[src]
Add flag to node.
pub fn has_flag(&self, flag_type: usize) -> bool
[src]
Check if node has flag.
pub fn add_outgoing(&mut self, edge_type: usize, to: &T)
[src]
Link this node to another one via an outgoing edge.
pub fn add_incoming(&mut self, edge_type: usize, from: &T)
[src]
Link this node to another one via an incoming edge.
pub fn has_outgoing(&self, edge_type: usize, to: &T) -> bool
[src]
Whether or not this node is linked to another one via an outgoing edge of a certain type.
pub fn has_incoming(&self, edge_type: usize, from: &T) -> bool
[src]
Whether or not this node is linked to another one via an outgoing edge of a certain type.
pub fn outgoing_nodes(&self, edge_type: usize) -> Vec<T>
[src]
All nodes that this one links to via outgoing edges of a certain type.
pub fn incoming_nodes(&self, edge_type: usize) -> Vec<T>
[src]
All nodes that this one links to via incoming edges of a certain type.