pub struct PathElement<Coord> { /* private fields */ }
Expand description
An element of a series of connected lines
Implementations§
source§impl<Coord> PathElement<Coord>
impl<Coord> PathElement<Coord>
sourcepub fn new<P, S>(points: P, style: S) -> PathElement<Coord>
pub fn new<P, S>(points: P, style: S) -> PathElement<Coord>
Create a new path
points
: The iterator of the pointsstyle
: The shape style- returns the created element
Trait Implementations§
source§impl<Coord, DB> Drawable<DB> for PathElement<Coord>where
DB: DrawingBackend,
impl<Coord, DB> Drawable<DB> for PathElement<Coord>where
DB: DrawingBackend,
source§impl<'a, Coord> PointCollection<'a, Coord> for &'a PathElement<Coord>
impl<'a, Coord> PointCollection<'a, Coord> for &'a PathElement<Coord>
Auto Trait Implementations§
impl<Coord> RefUnwindSafe for PathElement<Coord>where
Coord: RefUnwindSafe,
impl<Coord> Send for PathElement<Coord>where
Coord: Send,
impl<Coord> Sync for PathElement<Coord>where
Coord: Sync,
impl<Coord> Unpin for PathElement<Coord>where
Coord: Unpin,
impl<Coord> UnwindSafe for PathElement<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