pub struct Graph {
pub strict: bool,
pub graph_type: GraphType,
pub id: Option<String>,
pub statements: Vec<Statement>,
pub span: Range<usize>,
}Expand description
A graph definition (either a ‘graph’ or a ‘digraph’).
Fields§
§strict: boolWhether the graph is strict (no multiple edges between same nodes).
graph_type: GraphTypeThe type of the graph (graph or digraph).
id: Option<String>Optional identifier for the graph.
statements: Vec<Statement>The list of statements within the graph.
span: Range<usize>The source range of this graph definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Graph
impl<'de> Deserialize<'de> for Graph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Graph
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnsafeUnpin for Graph
impl UnwindSafe for Graph
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