pub struct GlyphSource<'a> {
pub cluster: usize,
pub text: &'a str,
}Expand description
One glyph’s share of the source text: the cluster it belongs to (glyphs of one cluster share it) and that cluster’s text.
Fields§
§cluster: usizeAny value that is the same for every glyph of one cluster and differs between neighbouring clusters: the cluster’s start in the source text is the natural one.
text: &'a strThe cluster’s text: one character usually, several for a ligature, a whole grapheme for a base with its marks.
Trait Implementations§
Source§impl<'a> Clone for GlyphSource<'a>
impl<'a> Clone for GlyphSource<'a>
impl<'a> Copy for GlyphSource<'a>
Source§impl<'a> Debug for GlyphSource<'a>
impl<'a> Debug for GlyphSource<'a>
impl<'a> Eq for GlyphSource<'a>
Source§impl<'a> PartialEq for GlyphSource<'a>
impl<'a> PartialEq for GlyphSource<'a>
impl<'a> StructuralPartialEq for GlyphSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for GlyphSource<'a>
impl<'a> RefUnwindSafe for GlyphSource<'a>
impl<'a> Send for GlyphSource<'a>
impl<'a> Sync for GlyphSource<'a>
impl<'a> Unpin for GlyphSource<'a>
impl<'a> UnsafeUnpin for GlyphSource<'a>
impl<'a> UnwindSafe for GlyphSource<'a>
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.