pub struct SinglePosStatement {
pub pos: Vec<(GlyphContainer, Option<ValueRecord>)>,
pub prefix: Vec<GlyphContainer>,
pub suffix: Vec<GlyphContainer>,
pub force_chain: bool,
pub location: Range<usize>,
}Expand description
A single positioning rule (GPOS type 1)
Fields§
§pos: Vec<(GlyphContainer, Option<ValueRecord>)>The glyphs and their associated value records to be positioned
prefix: Vec<GlyphContainer>The prefix (backtrack) glyphs
suffix: Vec<GlyphContainer>The suffix (lookahead) glyphs
force_chain: boolWhether to force this statement to be treated as a contextual positioning rule
location: Range<usize>The location of the statement in the source feature file
Implementations§
Source§impl SinglePosStatement
impl SinglePosStatement
Sourcepub fn new(
prefix: Vec<GlyphContainer>,
suffix: Vec<GlyphContainer>,
pos: Vec<(GlyphContainer, Option<ValueRecord>)>,
force_chain: bool,
location: Range<usize>,
) -> Self
pub fn new( prefix: Vec<GlyphContainer>, suffix: Vec<GlyphContainer>, pos: Vec<(GlyphContainer, Option<ValueRecord>)>, force_chain: bool, location: Range<usize>, ) -> Self
Create a new single positioning statement.
Trait Implementations§
Source§impl Clone for SinglePosStatement
impl Clone for SinglePosStatement
Source§fn clone(&self) -> SinglePosStatement
fn clone(&self) -> SinglePosStatement
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 SinglePosStatement
impl Debug for SinglePosStatement
Source§impl From<Gpos1> for SinglePosStatement
impl From<Gpos1> for SinglePosStatement
Source§impl PartialEq for SinglePosStatement
impl PartialEq for SinglePosStatement
impl Eq for SinglePosStatement
impl StructuralPartialEq for SinglePosStatement
Auto Trait Implementations§
impl Freeze for SinglePosStatement
impl RefUnwindSafe for SinglePosStatement
impl Send for SinglePosStatement
impl Sync for SinglePosStatement
impl Unpin for SinglePosStatement
impl UnsafeUnpin for SinglePosStatement
impl UnwindSafe for SinglePosStatement
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.