pub struct ShapedText<'a> { /* private fields */ }Implementations§
Source§impl ShapedText<'_>
impl ShapedText<'_>
pub const fn text(&self) -> TextRange
pub const fn glyphs(&self) -> &[ShapedGlyph]
pub const fn runs(&self) -> &[GlyphRun]
pub fn run(&self, index: usize) -> Option<ShapedRun<'_>>
pub fn is_safe_break(&self, offset: u32) -> bool
pub fn break_into<'output>( &self, text: &str, max_width: i32, output: &'output mut [BrokenLine], ) -> Result<BrokenLines<'output>, LayoutError>
Auto Trait Implementations§
impl<'a> Freeze for ShapedText<'a>
impl<'a> RefUnwindSafe for ShapedText<'a>
impl<'a> Send for ShapedText<'a>
impl<'a> Sync for ShapedText<'a>
impl<'a> Unpin for ShapedText<'a>
impl<'a> UnsafeUnpin for ShapedText<'a>
impl<'a> UnwindSafe for ShapedText<'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