Struct audio_processor_testing_helpers::charts::Rectangle
source · [−]pub struct Rectangle<Coord> { /* private fields */ }
Expand description
A rectangle element
Implementations
Trait Implementations
sourceimpl<Coord, DB> Drawable<DB, BackendCoordOnly> for Rectangle<Coord> where
DB: DrawingBackend,
impl<Coord, DB> Drawable<DB, BackendCoordOnly> for Rectangle<Coord> where
DB: DrawingBackend,
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<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Rectangle<Coord>
impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Rectangle<Coord>
Auto Trait Implementations
impl<Coord> RefUnwindSafe for Rectangle<Coord> where
Coord: RefUnwindSafe,
impl<Coord> Send for Rectangle<Coord> where
Coord: Send,
impl<Coord> Sync for Rectangle<Coord> where
Coord: Sync,
impl<Coord> Unpin for Rectangle<Coord> where
Coord: Unpin,
impl<Coord> UnwindSafe for Rectangle<Coord> where
Coord: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: 'b + Drawable<DB, BackendCoordOnly>,
Coord: Clone,
DB: DrawingBackend,
&'a T: for<'a> PointCollection<'a, Coord, BackendCoordOnly>,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for T where
T: 'b + Drawable<DB, BackendCoordOnly>,
Coord: Clone,
DB: DrawingBackend,
&'a T: for<'a> PointCollection<'a, Coord, BackendCoordOnly>,
sourcefn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion