pub struct DefaultBranch {
pub relationships: Vec<RelationshipDecl>,
pub trailing_comment: Option<Comment>,
pub trailing_line_comment: Option<Comment>,
pub blank_line_before_close: bool,
pub open_brace_span: ExprSpan,
pub span: ExprSpan,
}Expand description
The _ => { ... } default branch of a conditional_decl, mirroring ConditionalBranch’s
shape (it has no match literal of its own).
Fields§
§relationships: Vec<RelationshipDecl>The default branch’s relationships, in declaration order.
trailing_comment: Option<Comment>A trailing comment immediately preceding this branch’s own closing }, if recovered.
See https://github.com/stlab/cel-rs/issues/52.
trailing_line_comment: Option<Comment>A ////* */ comment on the same source line as this branch’s own closing } (between
it and the enclosing conditional’s own closing }), if recovered. See
https://github.com/stlab/cel-rs/issues/59.
blank_line_before_close: boolWhether a blank line preceded this branch’s own closing }, if recovered.
open_brace_span: ExprSpanThe span of this branch’s own opening {, used to recover trailing trivia when
relationships is empty.
span: ExprSpanThe span from the _ token through this branch’s own closing }.
Trait Implementations§
Source§impl Clone for DefaultBranch
impl Clone for DefaultBranch
Source§fn clone(&self) -> DefaultBranch
fn clone(&self) -> DefaultBranch
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 moreAuto Trait Implementations§
impl !Send for DefaultBranch
impl !Sync for DefaultBranch
impl Freeze for DefaultBranch
impl RefUnwindSafe for DefaultBranch
impl Unpin for DefaultBranch
impl UnsafeUnpin for DefaultBranch
impl UnwindSafe for DefaultBranch
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