Struct audio_processor_testing_helpers::charts::Pixel
source · pub struct Pixel<Coord> { /* private fields */ }
Expand description
An element representing a single pixel.
See crate::element::EmptyElement
for more information and examples.
Implementations§
source§impl<Coord> Pixel<Coord>
impl<Coord> Pixel<Coord>
sourcepub fn new<P, S>(pos: P, style: S) -> Pixel<Coord>where
P: Into<Coord>,
S: Into<ShapeStyle>,
pub fn new<P, S>(pos: P, style: S) -> Pixel<Coord>where P: Into<Coord>, S: Into<ShapeStyle>,
Creates a new pixel.
See crate::element::EmptyElement
for more information and examples.
Trait Implementations§
source§impl<Coord, DB> Drawable<DB, BackendCoordOnly> for Pixel<Coord>where
DB: DrawingBackend,
impl<Coord, DB> Drawable<DB, BackendCoordOnly> for Pixel<Coord>where DB: DrawingBackend,
source§impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Pixel<Coord>
impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Pixel<Coord>
source§fn point_iter(
self
) -> <&'a Pixel<Coord> as PointCollection<'a, Coord, BackendCoordOnly>>::IntoIter
fn point_iter( self ) -> <&'a Pixel<Coord> as PointCollection<'a, Coord, BackendCoordOnly>>::IntoIter
framework to do the coordinate mapping
source§impl<Coord, Size> PointElement<Coord, Size> for Pixel<Coord>where
Size: SizeDesc,
impl<Coord, Size> PointElement<Coord, Size> for Pixel<Coord>where Size: SizeDesc,
source§fn make_point(pos: Coord, _: Size, style: ShapeStyle) -> Pixel<Coord>
fn make_point(pos: Coord, _: Size, style: ShapeStyle) -> Pixel<Coord>
Point creator. Read more
Auto Trait Implementations§
impl<Coord> RefUnwindSafe for Pixel<Coord>where Coord: RefUnwindSafe,
impl<Coord> Send for Pixel<Coord>where Coord: Send,
impl<Coord> Sync for Pixel<Coord>where Coord: Sync,
impl<Coord> Unpin for Pixel<Coord>where Coord: Unpin,
impl<Coord> UnwindSafe for Pixel<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, 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