pub enum Constant {
Nil,
Boolean(bool),
Float(Number),
Int(Integer),
ShortString(String),
LongString(String),
}
Expand description
An entry in the constant pool.
Variants§
Nil
The value nil
.
Boolean(bool)
A boolean.
Float(Number)
A floating-point number.
Int(Integer)
An integer.
ShortString(String)
A short string.
LongString(String)
A long string. Behaves the same as ShortString
.
Trait Implementations§
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl Freeze for Constant
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