Struct audio_processor_testing_helpers::charts::Rectangle
source · pub struct Rectangle<Coord> { /* private fields */ }
Expand description
A rectangle element
Implementations§
source§impl<Coord> Rectangle<Coord>
impl<Coord> Rectangle<Coord>
sourcepub fn new<S>(points: [Coord; 2], style: S) -> Rectangle<Coord>where
S: Into<ShapeStyle>,
pub fn new<S>(points: [Coord; 2], style: S) -> Rectangle<Coord>where
S: Into<ShapeStyle>,
Create a new path
points
: The left upper and right lower corner of the rectanglestyle
: The shape style- returns the created element
Trait Implementations§
source§impl<Coord, DB> Drawable<DB> for Rectangle<Coord>where
DB: DrawingBackend,
impl<Coord, DB> Drawable<DB> for Rectangle<Coord>where
DB: DrawingBackend,
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§
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