pub struct TextWidget {
pub content: String,
pub style: TextStyle,
}Expand description
Text widget
Fields§
§content: StringText content
style: TextStyleText style
Implementations§
Source§impl TextWidget
impl TextWidget
Trait Implementations§
Source§impl Clone for TextWidget
impl Clone for TextWidget
Source§fn clone(&self) -> TextWidget
fn clone(&self) -> TextWidget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextWidget
impl RefUnwindSafe for TextWidget
impl Send for TextWidget
impl Sync for TextWidget
impl Unpin for TextWidget
impl UnsafeUnpin for TextWidget
impl UnwindSafe for TextWidget
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