pub enum CanvasContent {
Chart(Arc<ChartModel>),
Svg {
light: Arc<str>,
dark: Arc<str>,
aspect: f32,
},
Error(String),
}Variants§
Chart(Arc<ChartModel>)
Svg
One rendering per appearance and the drawing’s height over width.
Error(String)
Trait Implementations§
Source§impl Clone for CanvasContent
impl Clone for CanvasContent
Auto Trait Implementations§
impl Forget for CanvasContent
impl Freeze for CanvasContentwhere
*const ArcInner<ChartModel> is !null: Freeze,
PhantomData<ArcInner<ChartModel>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for CanvasContent
impl RefUnwindSafe for CanvasContent
impl Send for CanvasContent
impl Sync for CanvasContent
impl Unpin for CanvasContent
impl UnsafeUnpin for CanvasContentwhere
*const ArcInner<ChartModel> is !null: UnsafeUnpin,
PhantomData<ArcInner<ChartModel>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for CanvasContent
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