pub struct MarkerElement<Coord> { /* private fields */ }Expand description
A concrete owned Plotters element for one scientific marker.
The anchor is always the visual centre, whether it is a logical ternary point or a backend-pixel legend coordinate.
Implementations§
Source§impl<Coord> MarkerElement<Coord>
impl<Coord> MarkerElement<Coord>
Sourcepub fn new(
anchor: Coord,
size: u32,
style: MarkerStyle,
) -> Result<Self, MarkerError>
pub fn new( anchor: Coord, size: u32, style: MarkerStyle, ) -> Result<Self, MarkerError>
Validate and build an element.
Sourcepub const fn drawing(&self) -> &MarkerDrawing
pub const fn drawing(&self) -> &MarkerDrawing
Inspect local geometry.
Trait Implementations§
Source§impl<Coord, DB: DrawingBackend> Drawable<DB> for MarkerElement<Coord>
impl<Coord, DB: DrawingBackend> Drawable<DB> for MarkerElement<Coord>
Auto Trait Implementations§
impl<Coord> Freeze for MarkerElement<Coord>where
Coord: Freeze,
impl<Coord> RefUnwindSafe for MarkerElement<Coord>where
Coord: RefUnwindSafe,
impl<Coord> Send for MarkerElement<Coord>where
Coord: Send,
impl<Coord> Sync for MarkerElement<Coord>where
Coord: Sync,
impl<Coord> Unpin for MarkerElement<Coord>where
Coord: Unpin,
impl<Coord> UnsafeUnpin for MarkerElement<Coord>where
Coord: UnsafeUnpin,
impl<Coord> UnwindSafe for MarkerElement<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