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§
Auto Trait Implementations§
impl<'a, Coord, T> Freeze for Text<'a, Coord, T>
impl<'a, Coord, T> RefUnwindSafe for Text<'a, Coord, T>where
T: RefUnwindSafe,
Coord: RefUnwindSafe,
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>
impl<'a, Coord, T> UnwindSafe for Text<'a, Coord, T>where
T: UnwindSafe,
Coord: UnwindSafe,
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> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
Source§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.