pub struct DynElement<'a, DB, Coord>where
DB: DrawingBackend,
Coord: Clone,{ /* private fields */ }
Expand description
The container for a dynamically dispatched element
Trait Implementations§
Source§impl<'a, DB: DrawingBackend, Coord: Clone> Drawable<DB> for DynElement<'a, DB, Coord>
impl<'a, DB: DrawingBackend, Coord: Clone> Drawable<DB> for DynElement<'a, DB, Coord>
Source§impl<'a, 'b: 'a, DB: DrawingBackend, Coord: Clone> PointCollection<'a, Coord> for &'a DynElement<'b, DB, Coord>
impl<'a, 'b: 'a, DB: DrawingBackend, Coord: Clone> PointCollection<'a, Coord> for &'a DynElement<'b, DB, Coord>
Auto Trait Implementations§
impl<'a, DB, Coord> Freeze for DynElement<'a, DB, Coord>
impl<'a, DB, Coord> !RefUnwindSafe for DynElement<'a, DB, Coord>
impl<'a, DB, Coord> !Send for DynElement<'a, DB, Coord>
impl<'a, DB, Coord> !Sync for DynElement<'a, DB, Coord>
impl<'a, DB, Coord> Unpin for DynElement<'a, DB, Coord>where
Coord: Unpin,
impl<'a, DB, Coord> !UnwindSafe for DynElement<'a, DB, Coord>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes