pub enum Scalar {
Unit,
Bool,
Int,
Decimal,
Duration,
Instant,
}Expand description
The types written as their encoding and nothing more, never in a slot of
their own (trace.md, Slots).
Variants§
Unit
Unit: nothing.
Bool
Bool: one byte, 0 or 1.
Int
Int: a signed number.
Decimal
Decimal: its coefficient and exponent, two signed numbers.
Duration
Duration: its seconds, a Decimal.
Instant
Instant: its seconds after the epoch, a Decimal.
Trait Implementations§
impl Copy for Scalar
impl Eq for Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Forget for Scalar
impl Freeze for Scalar
impl Move for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnsafeUnpin for Scalar
impl UnwindSafe for Scalar
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