pub struct BranchView {
pub guard: Option<String>,
pub outcome: OutcomeView,
pub span: Span,
}Expand description
One branch of a node: a when branch, or the node’s single outcome.
Fields§
§guard: Option<String>None for else, or for a node’s single outcome.
outcome: OutcomeViewWhat the branch does.
span: SpanWhere the branch is.
Trait Implementations§
Source§impl Clone for BranchView
impl Clone for BranchView
Source§impl Debug for BranchView
impl Debug for BranchView
Source§impl PartialEq for BranchView
impl PartialEq for BranchView
impl StructuralPartialEq for BranchView
Auto Trait Implementations§
impl Freeze for BranchView
impl RefUnwindSafe for BranchView
impl Send for BranchView
impl Sync for BranchView
impl Unpin for BranchView
impl UnsafeUnpin for BranchView
impl UnwindSafe for BranchView
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