pub struct PreparedShapedText { /* private fields */ }Expand description
A prepared text object and its shaping snapshot. It retains its backend, so clearing or replacing an engine’s backend cannot invalidate retained lines.
Implementations§
Source§impl PreparedShapedText
impl PreparedShapedText
pub fn prepared(&self) -> &Rc<PreparedTextWithSegments>
pub fn direction(&self) -> PretextTextDirection
pub fn options(&self) -> PretextShapeOptions
pub fn text(&self) -> &str
pub fn shaped_run(&self) -> &Rc<PretextShapedRun>
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedShapedText
impl !Send for PreparedShapedText
impl !Sync for PreparedShapedText
impl !UnwindSafe for PreparedShapedText
impl Freeze for PreparedShapedText
impl Unpin for PreparedShapedText
impl UnsafeUnpin for PreparedShapedText
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