pub struct EmptyElement<Coord, DB> where
DB: DrawingBackend, { /* private fields */ }
Expand description
An empty composable element, which is the start point of an ad-hoc composable element
Implementations
sourceimpl<Coord, DB> EmptyElement<Coord, DB> where
DB: DrawingBackend,
impl<Coord, DB> EmptyElement<Coord, DB> where
DB: DrawingBackend,
pub fn at(coord: Coord) -> EmptyElement<Coord, DB>
Trait Implementations
sourceimpl<Coord, Other, DB> Add<Other> for EmptyElement<Coord, DB> where
DB: DrawingBackend,
Other: Drawable<DB, BackendCoordOnly>,
&'a Other: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
impl<Coord, Other, DB> Add<Other> for EmptyElement<Coord, DB> where
DB: DrawingBackend,
Other: Drawable<DB, BackendCoordOnly>,
&'a Other: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
sourceimpl<Coord, DB> Drawable<DB, BackendCoordOnly> for EmptyElement<Coord, DB> where
DB: DrawingBackend,
impl<Coord, DB> Drawable<DB, BackendCoordOnly> for EmptyElement<Coord, DB> where
DB: DrawingBackend,
sourcefn draw<I>(
&self,
_pos: I,
_backend: &mut DB,
(u32, u32)
) -> Result<(), DrawingErrorKind<<DB as DrawingBackend>::ErrorType>> where
I: Iterator<Item = (i32, i32)>,
fn draw<I>(
&self,
_pos: I,
_backend: &mut DB,
(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, DB> PointCollection<'a, Coord, BackendCoordOnly> for &'a EmptyElement<Coord, DB> where
DB: DrawingBackend,
impl<'a, Coord, DB> PointCollection<'a, Coord, BackendCoordOnly> for &'a EmptyElement<Coord, DB> where
DB: DrawingBackend,
sourcefn point_iter(
self
) -> <&'a EmptyElement<Coord, DB> as PointCollection<'a, Coord, BackendCoordOnly>>::IntoIter
fn point_iter(
self
) -> <&'a EmptyElement<Coord, DB> as PointCollection<'a, Coord, BackendCoordOnly>>::IntoIter
framework to do the coordinate mapping
Auto Trait Implementations
impl<Coord, DB> RefUnwindSafe for EmptyElement<Coord, DB> where
Coord: RefUnwindSafe,
DB: RefUnwindSafe,
impl<Coord, DB> Send for EmptyElement<Coord, DB> where
Coord: Send,
DB: Send,
impl<Coord, DB> Sync for EmptyElement<Coord, DB> where
Coord: Sync,
DB: Sync,
impl<Coord, DB> Unpin for EmptyElement<Coord, DB> where
Coord: Unpin,
DB: Unpin,
impl<Coord, DB> UnwindSafe for EmptyElement<Coord, DB> where
Coord: UnwindSafe,
DB: 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