pub struct NodeView {
pub name: String,
pub params: Vec<String>,
pub annotations: Vec<AnnotationView>,
pub lets: Vec<LetView>,
pub branches: Vec<BranchView>,
pub is_entry: bool,
pub uses_when: bool,
pub span: Span,
}Expand description
A node declaration as written.
Fields§
§name: StringThe node’s name.
params: Vec<String>Its parameter names.
annotations: Vec<AnnotationView>The annotations on it.
lets: Vec<LetView>Its lets, in order.
branches: Vec<BranchView>Its branches, or its single outcome as one branch.
is_entry: boolWhether it is listed under entry.
uses_when: boolFalse for a node written as a single outcome, without when.
span: SpanWhere the declaration is, without its annotations.
Trait Implementations§
impl StructuralPartialEq for NodeView
Auto Trait Implementations§
impl Freeze for NodeView
impl RefUnwindSafe for NodeView
impl Send for NodeView
impl Sync for NodeView
impl Unpin for NodeView
impl UnsafeUnpin for NodeView
impl UnwindSafe for NodeView
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