pub enum ConstVal {
Int(i32),
Long(i64),
Float(f32),
Double(f64),
Str(String),
Null,
ClassLit(TypeRef),
}Expand description
A constant value with its source-level type.
Variants§
Int(i32)
Long(i64)
Float(f32)
Double(f64)
Str(String)
Null
null literal.
ClassLit(TypeRef)
Unloaded class constant resolved to a class literal or X.class.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ConstVal
Auto Trait Implementations§
impl Freeze for ConstVal
impl RefUnwindSafe for ConstVal
impl Send for ConstVal
impl Sync for ConstVal
impl Unpin for ConstVal
impl UnsafeUnpin for ConstVal
impl UnwindSafe for ConstVal
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