[][src]Trait zamm_yang::node_wrappers::BaseNodeTrait

pub trait BaseNodeTrait<T>: CommonNodeTrait {
    pub fn set_value(&mut self, value: Rc<dyn KBValue + 'static>);
pub fn value(&self) -> Option<Rc<dyn KBValue + 'static>>;
pub fn add_flag(&mut self, flag_type: usize);
pub fn has_flag(&self, flag_type: usize) -> bool;
pub fn add_outgoing(&mut self, edge_type: usize, to: &T);
pub fn add_incoming(&mut self, edge_type: usize, from: &T);
pub fn has_outgoing(&self, edge_type: usize, to: &T) -> bool;
pub fn has_incoming(&self, edge_type: usize, from: &T) -> bool;
pub fn outgoing_nodes(&self, edge_type: usize) -> Vec<T, Global>;
pub fn incoming_nodes(&self, edge_type: usize) -> Vec<T, Global>; }

All low-level wrappers will have these functions available.

Required methods

pub fn set_value(&mut self, value: Rc<dyn KBValue + 'static>)[src]

Associate this node with a value.

pub fn value(&self) -> Option<Rc<dyn KBValue + 'static>>[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, Global>[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, Global>[src]

All nodes that this one links to via incoming edges of a certain type.

Loading content...

Implementors

impl BaseNodeTrait<BaseNode> for BaseNode[src]

impl BaseNodeTrait<FinalNode> for FinalNode[src]

impl BaseNodeTrait<InheritanceNode> for InheritanceNode[src]

Loading content...