pub struct GenericStateEntry<T: FromData> {
    pub new_state: u16,
    pub flags: u16,
    pub extra: T,
}
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

Checks that entry has an offset.

Returns a value offset.

Used by kern::format1 subtable.

If set, reset the kerning data (clear the stack).

If set, advance to the next glyph before going to the new state.

If set, push this glyph on the kerning stack.

If set, remember this glyph as the marked glyph.

Used by kerx::format4 subtable.

Yes, the same as has_push.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Object’s raw data size. Read more

Parses an object from a raw data.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.