pub struct MultipleSubstStatement {
pub location: Range<usize>,
pub prefix: Vec<GlyphContainer>,
pub suffix: Vec<GlyphContainer>,
pub glyph: GlyphContainer,
pub replacement: Vec<GlyphContainer>,
pub force_chain: bool,
}Expand description
A multiple substitution (GSUB type 2) statement
Fields§
§location: Range<usize>The location of the statement in the source FEA.
prefix: Vec<GlyphContainer>The prefix (backtrack) glyphs
suffix: Vec<GlyphContainer>The suffix (lookahead) glyphs
glyph: GlyphContainerThe glyph to be substituted
replacement: Vec<GlyphContainer>The replacement glyphs
force_chain: boolWhether to force this substitution to be treated as contextual
Implementations§
Source§impl MultipleSubstStatement
impl MultipleSubstStatement
Sourcepub fn new(
glyph: GlyphContainer,
replacement: Vec<GlyphContainer>,
prefix: Vec<GlyphContainer>,
suffix: Vec<GlyphContainer>,
location: Range<usize>,
force_chain: bool,
) -> Self
pub fn new( glyph: GlyphContainer, replacement: Vec<GlyphContainer>, prefix: Vec<GlyphContainer>, suffix: Vec<GlyphContainer>, location: Range<usize>, force_chain: bool, ) -> Self
Create a new multiple substitution statement.
Trait Implementations§
Source§impl Clone for MultipleSubstStatement
impl Clone for MultipleSubstStatement
Source§fn clone(&self) -> MultipleSubstStatement
fn clone(&self) -> MultipleSubstStatement
Returns a duplicate 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 MultipleSubstStatement
impl Debug for MultipleSubstStatement
Source§impl From<Gsub2> for MultipleSubstStatement
impl From<Gsub2> for MultipleSubstStatement
Source§impl PartialEq for MultipleSubstStatement
impl PartialEq for MultipleSubstStatement
Source§impl TryFrom<Gsub6> for MultipleSubstStatement
impl TryFrom<Gsub6> for MultipleSubstStatement
impl Eq for MultipleSubstStatement
impl StructuralPartialEq for MultipleSubstStatement
Auto Trait Implementations§
impl Freeze for MultipleSubstStatement
impl RefUnwindSafe for MultipleSubstStatement
impl Send for MultipleSubstStatement
impl Sync for MultipleSubstStatement
impl Unpin for MultipleSubstStatement
impl UnsafeUnpin for MultipleSubstStatement
impl UnwindSafe for MultipleSubstStatement
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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
Convert this type into
T, using the provided data to resolve any offsets.