Struct audio_processor_testing_helpers::charts::Text
source · [−]Expand description
A single line text element. This can be owned or borrowed string, dependents on
String
or str
moved into.
Implementations
Trait Implementations
sourceimpl<'a, Coord, DB, T> Drawable<DB, BackendCoordOnly> for Text<'a, Coord, T>where
Coord: 'a,
DB: DrawingBackend,
T: Borrow<str>,
impl<'a, Coord, DB, T> Drawable<DB, BackendCoordOnly> for Text<'a, Coord, T>where
Coord: 'a,
DB: DrawingBackend,
T: Borrow<str>,
sourcefn draw<I>(
&self,
points: I,
backend: &mut DB,
(u32, u32)
) -> Result<(), DrawingErrorKind<<DB as DrawingBackend>::ErrorType>>where
I: Iterator<Item = (i32, i32)>,
fn draw<I>(
&self,
points: I,
backend: &mut DB,
(u32, u32)
) -> Result<(), DrawingErrorKind<<DB as DrawingBackend>::ErrorType>>where
I: Iterator<Item = (i32, i32)>,
Actually draws the element. The key points is already translated into the
image coordinate and can be used by DC directly Read more
sourceimpl<'b, 'a, Coord, T> PointCollection<'a, Coord, BackendCoordOnly> for &'a Text<'b, Coord, T>where
Coord: 'a,
T: 'a + Borrow<str>,
impl<'b, 'a, Coord, T> PointCollection<'a, Coord, BackendCoordOnly> for &'a Text<'b, Coord, T>where
Coord: 'a,
T: 'a + Borrow<str>,
sourcefn point_iter(
self
) -> <&'a Text<'b, Coord, T> as PointCollection<'a, Coord, BackendCoordOnly>>::IntoIter
fn point_iter(
self
) -> <&'a Text<'b, Coord, T> as PointCollection<'a, Coord, BackendCoordOnly>>::IntoIter
framework to do the coordinate mapping
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: 'b + Drawable<DB, BackendCoordOnly>,
&'a T: for<'a> PointCollection<'a, Coord, BackendCoordOnly>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: 'b + Drawable<DB, BackendCoordOnly>,
&'a T: for<'a> PointCollection<'a, Coord, BackendCoordOnly>,
Coord: Clone,
DB: DrawingBackend,
sourcefn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion