pub struct ShapedRun<'a> { /* private fields */ }Implementations§
Source§impl<'a> ShapedRun<'a>
impl<'a> ShapedRun<'a>
pub const fn new( font_id: FontId, text: TextRange, bidi_level: u8, glyphs: &'a [ShapedGlyph], ) -> Self
pub const fn font_id(&self) -> FontId
pub const fn text(&self) -> TextRange
pub const fn direction(&self) -> Direction
pub const fn bidi_level(&self) -> u8
pub const fn glyphs(&self) -> &[ShapedGlyph]
pub fn is_safe_break(&self, offset: u32) -> bool
pub fn line_breaks<'text, 'run>( &'run self, text: &'text str, ) -> Result<SafeLineBreaks<'text, 'run, 'a>, ShapeError>
pub fn position_into<'output>( &self, origin: FlowPoint, output: &'output mut [PositionedGlyph], ) -> Result<PositionedRun<'output>, PositionError>
Auto Trait Implementations§
impl<'a> Forget for ShapedRun<'a>
impl<'a> Freeze for ShapedRun<'a>
impl<'a> RefUnwindSafe for ShapedRun<'a>
impl<'a> Send for ShapedRun<'a>
impl<'a> Sync for ShapedRun<'a>
impl<'a> Unpin for ShapedRun<'a>
impl<'a> UnsafeUnpin for ShapedRun<'a>
impl<'a> UnwindSafe for ShapedRun<'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