pub struct TriangleMarker<Coord, Size> where
Size: SizeDesc, { /* private fields */ }Expand description
Describe a triangle marker
Implementations
sourceimpl<Coord, Size> TriangleMarker<Coord, Size> where
Size: SizeDesc,
impl<Coord, Size> TriangleMarker<Coord, Size> where
Size: SizeDesc,
pub fn new<T>(coord: Coord, size: Size, style: T) -> TriangleMarker<Coord, Size> where
T: Into<ShapeStyle>,
Trait Implementations
sourceimpl<Coord, DB, Size> Drawable<DB, BackendCoordOnly> for TriangleMarker<Coord, Size> where
DB: DrawingBackend,
Size: SizeDesc,
impl<Coord, DB, Size> Drawable<DB, BackendCoordOnly> for TriangleMarker<Coord, Size> where
DB: DrawingBackend,
Size: SizeDesc,
sourcefn draw<I>(
&self,
points: I,
backend: &mut DB,
ps: (u32, u32)
) -> Result<(), DrawingErrorKind<<DB as DrawingBackend>::ErrorType>> where
I: Iterator<Item = (i32, i32)>,
fn draw<I>(
&self,
points: I,
backend: &mut DB,
ps: (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, Size> PointCollection<'a, Coord, BackendCoordOnly> for &'a TriangleMarker<Coord, Size> where
Coord: 'a,
Size: SizeDesc,
impl<'a, Coord, Size> PointCollection<'a, Coord, BackendCoordOnly> for &'a TriangleMarker<Coord, Size> where
Coord: 'a,
Size: SizeDesc,
sourceimpl<Coord, Size> PointElement<Coord, Size> for TriangleMarker<Coord, Size> where
Size: SizeDesc,
impl<Coord, Size> PointElement<Coord, Size> for TriangleMarker<Coord, Size> where
Size: SizeDesc,
fn make_point(
pos: Coord,
size: Size,
style: ShapeStyle
) -> TriangleMarker<Coord, Size>
Auto Trait Implementations
impl<Coord, Size> RefUnwindSafe for TriangleMarker<Coord, Size> where
Coord: RefUnwindSafe,
Size: RefUnwindSafe,
impl<Coord, Size> Send for TriangleMarker<Coord, Size> where
Coord: Send,
Size: Send,
impl<Coord, Size> Sync for TriangleMarker<Coord, Size> where
Coord: Sync,
Size: Sync,
impl<Coord, Size> Unpin for TriangleMarker<Coord, Size> where
Coord: Unpin,
Size: Unpin,
impl<Coord, Size> UnwindSafe for TriangleMarker<Coord, Size> where
Coord: UnwindSafe,
Size: 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