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
The optional require { ... } block trailing an out declaration’s initializer.
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
Source§fn clone(&self) -> RequireBlock
fn clone(&self) -> RequireBlock
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 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