Enum ConstantValue
pub enum ConstantValue {
String {
value: String,
},
StringArray {
variable_name: AstUniqueName,
values: Vec<String>,
},
F32 {
value: f32,
alignment: usize,
},
F64 {
value: f64,
alignment: usize,
},
}Expand description
The constant value.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstantValue
impl RefUnwindSafe for ConstantValue
impl Send for ConstantValue
impl Sync for ConstantValue
impl Unpin for ConstantValue
impl UnwindSafe for ConstantValue
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