pub struct Constant {
pub name: Option<String>,
pub override: Override,
pub ty: Handle<Type>,
pub init: Handle<Expression>,
}
Expand description
Constant value.
Fields§
§name: Option<String>
§override: Override
§ty: Handle<Type>
§init: Handle<Expression>
The value of the constant.
This Handle
refers to Module::const_expressions
, not
any Function::expressions
arena.
If override
is None
, then this must be a Naga
constant expression. Otherwise, this may be a Naga
override expression or constant expression.
Trait Implementations§
source§impl PartialEq for Constant
impl PartialEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
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