pub struct SemanticGraph {
pub nodes: Vec<SemanticNode>,
pub edges: Vec<SemanticEdge>,
}Expand description
Directed acyclic semantic graph.
Fields§
§nodes: Vec<SemanticNode>Graph nodes.
edges: Vec<SemanticEdge>Directed graph edges.
Implementations§
Source§impl SemanticGraph
impl SemanticGraph
Sourcepub fn add_node(&mut self, node: SemanticNode)
pub fn add_node(&mut self, node: SemanticNode)
Adds a node.
Sourcepub fn add_edge(&mut self, edge: SemanticEdge)
pub fn add_edge(&mut self, edge: SemanticEdge)
Adds an edge.
Trait Implementations§
Source§impl Clone for SemanticGraph
impl Clone for SemanticGraph
Source§fn clone(&self) -> SemanticGraph
fn clone(&self) -> SemanticGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticGraph
impl Debug for SemanticGraph
Source§impl Default for SemanticGraph
impl Default for SemanticGraph
Source§fn default() -> SemanticGraph
fn default() -> SemanticGraph
Returns the “default value” for a type. Read more
impl Eq for SemanticGraph
Source§impl PartialEq for SemanticGraph
impl PartialEq for SemanticGraph
Source§fn eq(&self, other: &SemanticGraph) -> bool
fn eq(&self, other: &SemanticGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SemanticGraph
Auto Trait Implementations§
impl Freeze for SemanticGraph
impl RefUnwindSafe for SemanticGraph
impl Send for SemanticGraph
impl Sync for SemanticGraph
impl Unpin for SemanticGraph
impl UnsafeUnpin for SemanticGraph
impl UnwindSafe for SemanticGraph
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