#[repr(u16)]pub enum DeltaFormat {
Local2BitDeltas = 1,
Local4BitDeltas = 2,
Local8BitDeltas = 3,
VariationIndex = 32_768,
// some variants omitted
}
Expand description
Device delta formats
Variants§
Local2BitDeltas = 1
Signed 2-bit value, 8 values per uint16
Local4BitDeltas = 2
Signed 4-bit value, 4 values per uint16
Local8BitDeltas = 3
Signed 8-bit value, 2 values per uint16
VariationIndex = 32_768
VariationIndex table, contains a delta-set index pair.
Implementations§
Trait Implementations§
source§impl Clone for DeltaFormat
impl Clone for DeltaFormat
source§fn clone(&self) -> DeltaFormat
fn clone(&self) -> DeltaFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeltaFormat
impl Debug for DeltaFormat
source§impl Default for DeltaFormat
impl Default for DeltaFormat
source§fn default() -> DeltaFormat
fn default() -> DeltaFormat
Returns the “default value” for a type. Read more
source§impl<'a> From<DeltaFormat> for FieldType<'a>
impl<'a> From<DeltaFormat> for FieldType<'a>
source§fn from(src: DeltaFormat) -> FieldType<'a>
fn from(src: DeltaFormat) -> FieldType<'a>
Converts to this type from the input type.
source§impl From<DeltaFormat> for i64
impl From<DeltaFormat> for i64
source§fn from(value: DeltaFormat) -> Self
fn from(value: DeltaFormat) -> Self
Converts to this type from the input type.
source§impl Hash for DeltaFormat
impl Hash for DeltaFormat
source§impl Ord for DeltaFormat
impl Ord for DeltaFormat
source§fn cmp(&self, other: &DeltaFormat) -> Ordering
fn cmp(&self, other: &DeltaFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DeltaFormat
impl PartialEq for DeltaFormat
source§impl PartialOrd for DeltaFormat
impl PartialOrd for DeltaFormat
source§impl Scalar for DeltaFormat
impl Scalar for DeltaFormat
impl Copy for DeltaFormat
impl Eq for DeltaFormat
impl StructuralPartialEq for DeltaFormat
Auto Trait Implementations§
impl Freeze for DeltaFormat
impl RefUnwindSafe for DeltaFormat
impl Send for DeltaFormat
impl Sync for DeltaFormat
impl Unpin for DeltaFormat
impl UnwindSafe for DeltaFormat
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
source§const RAW_BYTE_LEN: usize = _
const RAW_BYTE_LEN: usize = _
The raw size of this type, in bytes. Read more