#[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<'de> Deserialize<'de> for DeltaFormat
impl<'de> Deserialize<'de> for DeltaFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl Serialize for DeltaFormat
impl Serialize 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§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