pub struct Graph {
pub name: Option<String>,
pub annotations: Vec<AnnotationView>,
pub entries: Vec<String>,
pub events: Vec<String>,
pub params: Vec<ParamView>,
pub lets: Vec<LetView>,
pub nodes: Vec<NodeView>,
pub edges: Vec<Edge>,
}Expand description
Everything a builder needs to draw a flow. Expression texts are exactly
as written in the file; spans are byte offsets into Document::text.
Fields§
§name: Option<String>The name after flow, when there is one.
annotations: Vec<AnnotationView>The annotations on the flow declaration.
entries: Vec<String>The nodes under entry, in file order.
events: Vec<String>The declared events, in file order.
params: Vec<ParamView>The params, in file order.
lets: Vec<LetView>Flow-level lets and helpers.
nodes: Vec<NodeView>The nodes, in file order.
edges: Vec<Edge>Jumps and ask continuations, in node and branch order.
Trait Implementations§
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