pub struct Constant {
pub name: Option<String>,
pub ty: Handle<Type>,
pub init: Handle<Expression>,
}
Expand description
Constant value.
Fields§
§name: Option<String>
§ty: Handle<Type>
§init: Handle<Expression>
The value of the constant.
This Handle
refers to Module::global_expressions
, not
any Function::expressions
arena.
Trait Implementations§
source§impl PartialEq for Constant
impl PartialEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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