Expand description
A constant declaration: const FOO = EXPR;
A const
exists only at compile time, they do not appear at any fixed
location into the ROM.
Fields
name: Spanned<&'static str>
The name of the const
, which other code can now refer to.
expr: Spanned<Expr>
The expression that this const
is equivalent to.
Implementations
Trait Implementations
sourceimpl PartialEq<Const> for Const
impl PartialEq<Const> for Const
impl Eq for Const
impl StructuralEq for Const
impl StructuralPartialEq for Const
Auto Trait Implementations
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more