pub struct LineFragment { /* private fields */ }Implementations§
Source§impl LineFragment
impl LineFragment
pub const fn rect(&self) -> TextRect
pub const fn baseline(&self) -> Pt
pub const fn direction(&self) -> TextDirection
pub const fn justification(&self) -> Justification
pub fn fragments(&self) -> &[TextFragment]
Trait Implementations§
Source§impl Clone for LineFragment
impl Clone for LineFragment
Source§fn clone(&self) -> LineFragment
fn clone(&self) -> LineFragment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineFragment
impl Debug for LineFragment
Source§impl PartialEq for LineFragment
impl PartialEq for LineFragment
Source§fn eq(&self, other: &LineFragment) -> bool
fn eq(&self, other: &LineFragment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LineFragment
Auto Trait Implementations§
impl Freeze for LineFragment
impl RefUnwindSafe for LineFragment
impl Send for LineFragment
impl Sync for LineFragment
impl Unpin for LineFragment
impl UnsafeUnpin for LineFragment
impl UnwindSafe for LineFragment
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