pub struct TextRun { /* private fields */ }Implementations§
Source§impl TextRun
impl TextRun
pub const fn range(&self) -> TextRange
pub fn text(&self) -> &str
pub fn requested_font(&self) -> Option<&FontDescriptor>
pub const fn resolved_font(&self) -> &FontDescriptor
pub const fn font_source(&self) -> Option<&FontSource>
pub const fn font_size(&self) -> Pt
pub const fn letter_spacing(&self) -> Pt
pub fn language(&self) -> Option<&str>
pub const fn direction(&self) -> TextDirection
pub const fn script(&self) -> Script
pub fn decorations(&self) -> &[TextDecoration]
Trait Implementations§
impl StructuralPartialEq for TextRun
Auto Trait Implementations§
impl Freeze for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRun
impl Sync for TextRun
impl Unpin for TextRun
impl UnsafeUnpin for TextRun
impl UnwindSafe for TextRun
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