pub enum DeltaRunType {
Zero = 0,
I8 = 1,
I16 = 2,
I32 = 4,
}Available on crate feature
tables only.Expand description
The type of values for a given delta run (influences the number of bytes per delta)
The variants are intentionally set to the byte size of the type to allow usage as a multiplier when computing offsets.
Variants§
Implementations§
Source§impl DeltaRunType
impl DeltaRunType
Sourcepub fn new(control: u8) -> DeltaRunType
pub fn new(control: u8) -> DeltaRunType
The run type for a given control byte
Trait Implementations§
Source§impl Clone for DeltaRunType
impl Clone for DeltaRunType
Source§fn clone(&self) -> DeltaRunType
fn clone(&self) -> DeltaRunType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeltaRunType
Source§impl Debug for DeltaRunType
impl Debug for DeltaRunType
Source§impl PartialEq for DeltaRunType
impl PartialEq for DeltaRunType
Source§fn eq(&self, other: &DeltaRunType) -> bool
fn eq(&self, other: &DeltaRunType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeltaRunType
Auto Trait Implementations§
impl Freeze for DeltaRunType
impl RefUnwindSafe for DeltaRunType
impl Send for DeltaRunType
impl Sync for DeltaRunType
impl Unpin for DeltaRunType
impl UnsafeUnpin for DeltaRunType
impl UnwindSafe for DeltaRunType
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Available on crate feature
tables only.Convert this type into
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedTable<U> for Twhere
U: FromTableRef<T>,
impl<U, T> ToOwnedTable<U> for Twhere
U: FromTableRef<T>,
Source§fn to_owned_table(&self) -> U
fn to_owned_table(&self) -> U
Available on crate feature
tables only.