pub enum FieldKind {
Bool,
UInt {
bits: u8,
},
SInt {
bits: u8,
},
VarUInt,
VarSInt,
FixedPoint {
min: f32,
max: f32,
bits: u8,
},
}Expand description
The kind of encoding for a field.
Variants§
Bool
Boolean (1 bit).
UInt
Unsigned integer with fixed bit width.
SInt
Signed integer with fixed bit width.
VarUInt
Variable-length unsigned integer.
VarSInt
Variable-length signed integer (zigzag encoded).
FixedPoint
Fixed-point number with quantization.
Trait Implementations§
impl Copy for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnwindSafe for FieldKind
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