pub struct GlyphCluster<'a> {
pub byte_range: Range<usize>,
pub glyphs: &'a [ShapedGlyph],
}Expand description
A borrowed group of consecutive glyphs sharing a source byte offset.
Glyph positions and cluster offsets remain unchanged from the input run.
Fields§
§byte_range: Range<usize>Source byte range, ending at the next cluster or the supplied text length.
glyphs: &'a [ShapedGlyph]Glyphs borrowed directly from the input, in their original order.
Trait Implementations§
Source§impl<'a> Clone for GlyphCluster<'a>
impl<'a> Clone for GlyphCluster<'a>
Source§fn clone(&self) -> GlyphCluster<'a>
fn clone(&self) -> GlyphCluster<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for GlyphCluster<'a>
impl<'a> RefUnwindSafe for GlyphCluster<'a>
impl<'a> Send for GlyphCluster<'a>
impl<'a> Sync for GlyphCluster<'a>
impl<'a> Unpin for GlyphCluster<'a>
impl<'a> UnsafeUnpin for GlyphCluster<'a>
impl<'a> UnwindSafe for GlyphCluster<'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,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.