pub enum Value {
Bool(bool),
Int(i64),
UInt(u64),
Float(f64),
Complex(f64, f64),
}Expand description
A value of any element type, widened without loss: the common form through which conversions go.
Variants§
Bool(bool)
A boolean.
Int(i64)
A signed integer.
UInt(u64)
An unsigned integer.
Float(f64)
A floating point number (every element type’s values are exact).
Complex(f64, f64)
A complex number: the real and imaginary parts.
Trait Implementations§
impl Copy for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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