pub struct ParagraphLayout<'a> { /* private fields */ }Implementations§
Source§impl<'a> ParagraphLayout<'a>
impl<'a> ParagraphLayout<'a>
Sourcepub fn from_slices(
lines: &'a [LayoutLine],
runs: &'a [VisualRun],
glyphs: &'a [PositionedGlyph],
carets: &'a [CaretStop],
) -> Result<Self, LayoutError>
pub fn from_slices( lines: &'a [LayoutLine], runs: &'a [VisualRun], glyphs: &'a [PositionedGlyph], carets: &'a [CaretStop], ) -> Result<Self, LayoutError>
Borrows cached paragraph products after validating their ranges.
pub const fn lines(&self) -> &[LayoutLine]
pub const fn runs(&self) -> &[VisualRun]
pub const fn glyphs(&self) -> &[PositionedGlyph]
pub const fn carets(&self) -> &[CaretStop]
Source§impl<'layout> ParagraphLayout<'layout>
impl<'layout> ParagraphLayout<'layout>
pub fn place_on<'a, B>(
&'a self,
baselines: &'a [B],
) -> BaselinePlacement<'a, 'layout, [B]>where
B: TextBaseline,
pub fn place_with<'a, P>(
&'a self,
baselines: &'a P,
) -> BaselinePlacement<'a, 'layout, P>where
P: BaselineProvider + ?Sized,
Auto Trait Implementations§
impl<'a> Forget for ParagraphLayout<'a>
impl<'a> Freeze for ParagraphLayout<'a>
impl<'a> RefUnwindSafe for ParagraphLayout<'a>
impl<'a> Send for ParagraphLayout<'a>
impl<'a> Sync for ParagraphLayout<'a>
impl<'a> Unpin for ParagraphLayout<'a>
impl<'a> UnsafeUnpin for ParagraphLayout<'a>
impl<'a> UnwindSafe for ParagraphLayout<'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