pub struct Text<'a, Coord, T: Borrow<str>> { /* private fields */ }
Expand description
A single line text element. This can be owned or borrowed string, dependents on
String
or str
moved into.
Implementations§
Trait Implementations§
source§impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB, BackendCoordOnly> for Text<'a, Coord, T>
impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB, BackendCoordOnly> for Text<'a, Coord, T>
source§impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord, BackendCoordOnly> for &'a Text<'b, Coord, T>
impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord, BackendCoordOnly> for &'a Text<'b, Coord, T>
Auto Trait Implementations§
impl<'a, Coord, T> !RefUnwindSafe for Text<'a, Coord, T>
impl<'a, Coord, T> !Send for Text<'a, Coord, T>
impl<'a, Coord, T> !Sync for Text<'a, Coord, T>
impl<'a, Coord, T> Unpin for Text<'a, Coord, T>where Coord: Unpin, T: Unpin,
impl<'a, Coord, T> !UnwindSafe for Text<'a, Coord, T>
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
source§impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB, BackendCoordOnly> + 'b,
&'a T: for<'a> PointCollection<'a, Coord, BackendCoordOnly>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere T: Drawable<DB, BackendCoordOnly> + 'b, &'a T: for<'a> PointCollection<'a, Coord, BackendCoordOnly>, Coord: Clone, DB: DrawingBackend,
source§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion