Struct auk::TextElement
source · pub struct TextElement { /* private fields */ }
Expand description
A text element.
Implementations§
source§impl TextElement
impl TextElement
sourcepub fn new(text: impl Into<String>) -> Self
pub fn new(text: impl Into<String>) -> Self
Returns a new TextElement
with the given text.
Trait Implementations§
source§impl Debug for TextElement
impl Debug for TextElement
source§impl From<TextElement> for Element
impl From<TextElement> for Element
source§fn from(value: TextElement) -> Self
fn from(value: TextElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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