pub enum Scalar {
Show 14 variants
Bool,
U8,
U16,
U32,
U64,
U128,
I8,
I16,
I32,
I64,
I128,
F32,
F64,
Char,
}Expand description
Scalar width and signedness. Integer encoding and endianness come from the codec configuration.
Variants§
Bool
Native bool encoding.
U8
Native u8 encoding.
U16
Native u16 encoding.
U32
Native u32 encoding.
U64
Native u64 encoding.
U128
Native u128 encoding.
I8
Native i8 encoding.
I16
Native i16 encoding.
I32
Native i32 encoding.
I64
Native i64 encoding.
I128
Native i128 encoding.
F32
Native f32 encoding.
F64
Native f64 encoding.
Char
Native char encoding.
Trait Implementations§
impl Copy for Scalar
impl Eq for Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze 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