pub struct RequireBlock {
pub requirements: Vec<RequirementDecl>,
pub trailing_comment: Option<Comment>,
pub blank_line_before_close: bool,
pub open_brace_span: ExprSpan,
pub span: ExprSpan,
}Expand description
Fields§
§requirements: Vec<RequirementDecl>The block’s requirements, in declaration order.
trailing_comment: Option<Comment>A trailing comment immediately preceding this block’s own closing }, if recovered.
See https://github.com/stlab/cel-rs/issues/52.
blank_line_before_close: boolWhether a blank line preceded this block’s own closing }, if recovered. See
https://github.com/stlab/cel-rs/issues/52.
open_brace_span: ExprSpanThe span of this block’s own opening {, used to recover trailing trivia when
requirements is empty.
span: ExprSpanThe span of the whole require { ... } block.
Trait Implementations§
Source§impl Clone for RequireBlock
impl Clone for RequireBlock
Auto Trait Implementations§
impl !Send for RequireBlock
impl !Sync for RequireBlock
impl Freeze for RequireBlock
impl RefUnwindSafe for RequireBlock
impl Unpin for RequireBlock
impl UnsafeUnpin for RequireBlock
impl UnwindSafe for RequireBlock
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