pub enum StaticValue {
Int(i64),
Float(f32),
Double(f64),
Str(String),
Type(String),
Boolean(bool),
Null,
Field(String, String),
Other,
}Expand description
A resolved static-field initializer.
Variants§
Int(i64)
Float(f32)
Double(f64)
Str(String)
Type(String)
Boolean(bool)
Null
Field(String, String)
(declaring class, field name) — enum constants.
Other
Trait Implementations§
Source§impl Clone for StaticValue
impl Clone for StaticValue
Auto Trait Implementations§
impl Freeze for StaticValue
impl RefUnwindSafe for StaticValue
impl Send for StaticValue
impl Sync for StaticValue
impl Unpin for StaticValue
impl UnsafeUnpin for StaticValue
impl UnwindSafe for StaticValue
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