#[non_exhaustive]pub struct DeclareStmt {
pub directives: Box<[(Box<str>, Expr)]>,
pub body: Option<Box<Stmt>>,
pub uses_alternative: bool,
}Expand description
A declare(...) statement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.directives: Box<[(Box<str>, Expr)]>Directive name and value pairs.
body: Option<Box<Stmt>>Statement governed by the declare, if any.
uses_alternative: boolWhether the declare: ... enddeclare; syntax is used.
Implementations§
Trait Implementations§
Source§impl Clone for DeclareStmt
impl Clone for DeclareStmt
Source§impl Debug for DeclareStmt
impl Debug for DeclareStmt
Auto Trait Implementations§
impl Freeze for DeclareStmt
impl RefUnwindSafe for DeclareStmt
impl Send for DeclareStmt
impl Sync for DeclareStmt
impl Unpin for DeclareStmt
impl UnsafeUnpin for DeclareStmt
impl UnwindSafe for DeclareStmt
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