pub struct ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>, { /* private fields */ }Available on crate feature
plot only.Expand description
The composed element which has at least two components
Trait Implementations
sourceimpl<Coord, DB, A, B, C> Add<C> for ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>,
C: Drawable<DB, BackendCoordOnly>,
&'a A: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
&'a B: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
&'a C: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
impl<Coord, DB, A, B, C> Add<C> for ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>,
C: Drawable<DB, BackendCoordOnly>,
&'a A: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
&'a B: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
&'a C: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
type Output = ComposedElement<Coord, DB, A, ComposedElement<(i32, i32), DB, B, C>>
type Output = ComposedElement<Coord, DB, A, ComposedElement<(i32, i32), DB, B, C>>
The resulting type after applying the + operator.
sourceimpl<Coord, DB, A, B> Drawable<DB, BackendCoordOnly> for ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>,
&'a A: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
&'b B: for<'b> PointCollection<'b, (i32, i32), BackendCoordOnly>,
impl<Coord, DB, A, B> Drawable<DB, BackendCoordOnly> for ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>,
&'a A: for<'a> PointCollection<'a, (i32, i32), BackendCoordOnly>,
&'b B: for<'b> PointCollection<'b, (i32, i32), BackendCoordOnly>,
sourcefn draw<I>(
&self,
pos: I,
backend: &mut DB,
ps: (u32, u32)
) -> Result<(), DrawingErrorKind<<DB as DrawingBackend>::ErrorType>> where
I: Iterator<Item = (i32, i32)>,
fn draw<I>(
&self,
pos: 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<'b, Coord, DB, A, B> PointCollection<'b, Coord, BackendCoordOnly> for &'b ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>,
impl<'b, Coord, DB, A, B> PointCollection<'b, Coord, BackendCoordOnly> for &'b ComposedElement<Coord, DB, A, B> where
DB: DrawingBackend,
A: Drawable<DB, BackendCoordOnly>,
B: Drawable<DB, BackendCoordOnly>,
sourcefn point_iter(
self
) -> <&'b ComposedElement<Coord, DB, A, B> as PointCollection<'b, Coord, BackendCoordOnly>>::IntoIter
fn point_iter(
self
) -> <&'b ComposedElement<Coord, DB, A, B> as PointCollection<'b, Coord, BackendCoordOnly>>::IntoIter
framework to do the coordinate mapping
Auto Trait Implementations
impl<Coord, DB, A, B> RefUnwindSafe for ComposedElement<Coord, DB, A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
Coord: RefUnwindSafe,
DB: RefUnwindSafe,
impl<Coord, DB, A, B> Send for ComposedElement<Coord, DB, A, B> where
A: Send,
B: Send,
Coord: Send,
DB: Send,
impl<Coord, DB, A, B> Sync for ComposedElement<Coord, DB, A, B> where
A: Sync,
B: Sync,
Coord: Sync,
DB: Sync,
impl<Coord, DB, A, B> Unpin for ComposedElement<Coord, DB, A, B> where
A: Unpin,
B: Unpin,
Coord: Unpin,
DB: Unpin,
impl<Coord, DB, A, B> UnwindSafe for ComposedElement<Coord, DB, A, B> where
A: UnwindSafe,
B: UnwindSafe,
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