pub struct TextElement { /* private fields */ }
Implementations§
Source§impl TextElement
impl TextElement
pub fn new<S: Into<String>>(text: S) -> Self
pub fn new_with_styling<S: Into<String>>( text: S, styling: TextElementStyling, ) -> Self
Trait Implementations§
Source§impl Debug for TextElement
impl Debug for TextElement
Source§impl IsParagraph for TextElement
impl IsParagraph for TextElement
Auto Trait Implementations§
impl Freeze for TextElement
impl RefUnwindSafe for TextElement
impl Send for TextElement
impl Sync for TextElement
impl Unpin for TextElement
impl UnwindSafe for TextElement
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