Struct ttf_parser::apple_layout::GenericStateEntry
source · [−]Expand description
A State Table entry.
Used by legacy and extended tables.
Fields
new_state: u16
A new state.
flags: u16
Entry flags.
extra: T
Additional data.
Use ()
if no data expected.
Implementations
sourceimpl<T: FromData> GenericStateEntry<T>
impl<T: FromData> GenericStateEntry<T>
sourcepub fn has_offset(&self) -> bool
pub fn has_offset(&self) -> bool
Checks that entry has an offset.
sourcepub fn value_offset(&self) -> ValueOffset
pub fn value_offset(&self) -> ValueOffset
Returns a value offset.
Used by kern::format1 subtable.
sourcepub fn has_advance(&self) -> bool
pub fn has_advance(&self) -> bool
If set, advance to the next glyph before going to the new state.
Trait Implementations
sourceimpl<T: Clone + FromData> Clone for GenericStateEntry<T>
impl<T: Clone + FromData> Clone for GenericStateEntry<T>
sourcefn clone(&self) -> GenericStateEntry<T>
fn clone(&self) -> GenericStateEntry<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug + FromData> Debug for GenericStateEntry<T>
impl<T: Debug + FromData> Debug for GenericStateEntry<T>
sourceimpl<T: FromData> FromData for GenericStateEntry<T>
impl<T: FromData> FromData for GenericStateEntry<T>
impl<T: Copy + FromData> Copy for GenericStateEntry<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for GenericStateEntry<T> where
T: RefUnwindSafe,
impl<T> Send for GenericStateEntry<T> where
T: Send,
impl<T> Sync for GenericStateEntry<T> where
T: Sync,
impl<T> Unpin for GenericStateEntry<T> where
T: Unpin,
impl<T> UnwindSafe for GenericStateEntry<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more