pub struct ConstDecl {
pub span: Span,
pub name: String,
pub ty: Option<TypeExpr>,
pub value: Expr,
}Fields§
§span: Span§name: String§ty: Option<TypeExpr>§value: ExprTrait Implementations§
impl StructuralPartialEq for ConstDecl
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