pub struct RunText {
pub text: Arc<str>,
pub clusters: Arc<[u32]>,
}Expand description
RunText is the text a glyph run shows, as Skia’s text blobs keep it (allocRunText): what a
PDF reads back for selection and search. Drawing never reads it.
Fields§
§text: Arc<str>text is the run’s text.
clusters: Arc<[u32]>clusters holds one entry for each glyph: where the part of text it shows starts, in
UTF-8 bytes. Glyphs sharing a cluster show it together; a ligature is one glyph whose part
runs to the next cluster.
Trait Implementations§
impl StructuralPartialEq for RunText
Auto Trait Implementations§
impl Forget for RunText
impl Freeze for RunText
impl Move for RunText
impl RefUnwindSafe for RunText
impl Send for RunText
impl Sync for RunText
impl Unpin for RunText
impl UnsafeUnpin for RunTextwhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[u32]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u32]>>: UnsafeUnpin,
impl UnwindSafe for RunText
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