pub enum ConstantValue {
Integer {
value: u64,
text: Option<String>,
},
Float {
value: f64,
text: Option<String>,
},
Boolean(bool),
String(String),
Char(String),
}Variants§
Implementations§
Source§impl ConstantValue
impl ConstantValue
pub fn to_literal(&self) -> Literal
Trait Implementations§
Source§impl Clone for ConstantValue
impl Clone for ConstantValue
Source§impl Debug for ConstantValue
impl Debug for ConstantValue
Source§impl PartialEq for ConstantValue
impl PartialEq for ConstantValue
impl StructuralPartialEq for ConstantValue
Auto Trait Implementations§
impl Freeze for ConstantValue
impl RefUnwindSafe for ConstantValue
impl Send for ConstantValue
impl Sync for ConstantValue
impl Unpin for ConstantValue
impl UnsafeUnpin 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