Enum read_fonts::traversal::OffsetType
source · pub enum OffsetType {
Offset16(u16),
Offset24(Uint24),
Offset32(u32),
}
Expand description
Any offset type.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for OffsetType
impl Clone for OffsetType
source§fn clone(&self) -> OffsetType
fn clone(&self) -> OffsetType
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 Display for OffsetType
impl Display for OffsetType
source§impl<T: Into<OffsetType> + Clone> From<Nullable<T>> for OffsetType
impl<T: Into<OffsetType> + Clone> From<Nullable<T>> for OffsetType
source§impl From<Offset16> for OffsetType
impl From<Offset16> for OffsetType
source§fn from(src: Offset16) -> OffsetType
fn from(src: Offset16) -> OffsetType
Converts to this type from the input type.
source§impl From<Offset24> for OffsetType
impl From<Offset24> for OffsetType
source§fn from(src: Offset24) -> OffsetType
fn from(src: Offset24) -> OffsetType
Converts to this type from the input type.
source§impl From<Offset32> for OffsetType
impl From<Offset32> for OffsetType
source§fn from(src: Offset32) -> OffsetType
fn from(src: Offset32) -> OffsetType
Converts to this type from the input type.
impl Copy for OffsetType
Auto Trait Implementations§
impl Freeze for OffsetType
impl RefUnwindSafe for OffsetType
impl Send for OffsetType
impl Sync for OffsetType
impl Unpin for OffsetType
impl UnwindSafe for OffsetType
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
)