pub struct ConstDecl {
pub docs: Vec<Spanned<String>>,
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub name: Spanned<String>,
pub ty: Spanned<Type>,
pub value: Spanned<Expr>,
}Expand description
A const declaration.
Fields§
§docs: Vec<Spanned<String>>The /// lines before it, one entry per line, holding the text after
the /// (spec
docs/superpowers/specs/2026-10-07-phase-3-1-formatter-design.md §4).
attrs: Vec<Attribute>§vis: Visibility§name: Spanned<String>§ty: Spanned<Type>§value: Spanned<Expr>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstDecl
impl RefUnwindSafe for ConstDecl
impl Send for ConstDecl
impl Sync for ConstDecl
impl Unpin for ConstDecl
impl UnsafeUnpin for ConstDecl
impl UnwindSafe for ConstDecl
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