Struct ComposedElement
pub struct ComposedElement<Coord, DB, A, B>{ /* private fields */ }Expand description
A container for two drawable elements, used for composition.
This is used internally by Plotters and should probably not be included in user code.
See EmptyElement for more information and examples.
Trait Implementations§
§impl<Coord, DB, A, B, C> Add<C> for ComposedElement<Coord, DB, A, B>where
DB: DrawingBackend,
A: Drawable<DB>,
&'a A: for<'a> PointCollection<'a, (i32, i32)>,
B: Drawable<DB>,
&'a B: for<'a> PointCollection<'a, (i32, i32)>,
C: Drawable<DB>,
&'a C: for<'a> PointCollection<'a, (i32, i32)>,
impl<Coord, DB, A, B, C> Add<C> for ComposedElement<Coord, DB, A, B>where
DB: DrawingBackend,
A: Drawable<DB>,
&'a A: for<'a> PointCollection<'a, (i32, i32)>,
B: Drawable<DB>,
&'a B: for<'a> PointCollection<'a, (i32, i32)>,
C: Drawable<DB>,
&'a C: for<'a> PointCollection<'a, (i32, i32)>,
§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.§impl<Coord, DB, A, B> Drawable<DB> for ComposedElement<Coord, DB, A, B>where
DB: DrawingBackend,
&'a A: for<'a> PointCollection<'a, (i32, i32)>,
&'b B: for<'b> PointCollection<'b, (i32, i32)>,
A: Drawable<DB>,
B: Drawable<DB>,
impl<Coord, DB, A, B> Drawable<DB> for ComposedElement<Coord, DB, A, B>where
DB: DrawingBackend,
&'a A: for<'a> PointCollection<'a, (i32, i32)>,
&'b B: for<'b> PointCollection<'b, (i32, i32)>,
A: Drawable<DB>,
B: Drawable<DB>,
§impl<'b, Coord, DB, A, B> PointCollection<'b, Coord> for &'b ComposedElement<Coord, DB, A, B>
impl<'b, Coord, DB, A, B> PointCollection<'b, Coord> for &'b ComposedElement<Coord, DB, A, B>
§fn point_iter(
self,
) -> <&'b ComposedElement<Coord, DB, A, B> as PointCollection<'b, Coord>>::IntoIter
fn point_iter( self, ) -> <&'b ComposedElement<Coord, DB, A, B> as PointCollection<'b, Coord>>::IntoIter
framework to do the coordinate mapping
Auto Trait Implementations§
impl<Coord, DB, A, B> Freeze for ComposedElement<Coord, DB, A, B>
impl<Coord, DB, A, B> RefUnwindSafe for ComposedElement<Coord, DB, A, B>
impl<Coord, DB, A, B> Send for ComposedElement<Coord, DB, A, B>
impl<Coord, DB, A, B> Sync for ComposedElement<Coord, DB, A, B>
impl<Coord, DB, A, B> Unpin for ComposedElement<Coord, DB, A, B>
impl<Coord, DB, A, B> UnwindSafe for ComposedElement<Coord, DB, A, B>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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,
§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more