pub struct Text { /* private fields */ }Expand description
A peice of text that can be drawn on the display.
Implementations§
Source§impl Text
impl Text
Sourcepub fn new(text: &str, position: TextPosition, format: TextFormat) -> Self
pub fn new(text: &str, position: TextPosition, format: TextFormat) -> Self
Create a new text with a given position and format
Trait Implementations§
impl Eq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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