pub struct PanelContent(/* private fields */);Expand description
Content for a Canvas panel. Native Plots, text, fixed local images and frozen outputs can be passed directly.
Trait Implementations§
Source§impl Clone for PanelContent
impl Clone for PanelContent
Source§fn clone(&self) -> PanelContent
fn clone(&self) -> PanelContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K> From<&Plot<K>> for PanelContentwhere
K: ExactFamily,
impl<K> From<&Plot<K>> for PanelContentwhere
K: ExactFamily,
Source§fn from(plot: &Plot<K>) -> PanelContent
fn from(plot: &Plot<K>) -> PanelContent
Converts to this type from the input type.
Source§impl<K: ExactFamily> From<&PlotAdapter<'_, K>> for PanelContent
impl<K: ExactFamily> From<&PlotAdapter<'_, K>> for PanelContent
Source§fn from(adapter: &PlotAdapter<'_, K>) -> Self
fn from(adapter: &PlotAdapter<'_, K>) -> Self
Converts to this type from the input type.
Source§impl From<&TextPanel> for PanelContent
impl From<&TextPanel> for PanelContent
Source§fn from(text: &TextPanel) -> PanelContent
fn from(text: &TextPanel) -> PanelContent
Converts to this type from the input type.
Source§impl<K> From<Plot<K>> for PanelContentwhere
K: ExactFamily,
impl<K> From<Plot<K>> for PanelContentwhere
K: ExactFamily,
Source§fn from(plot: Plot<K>) -> PanelContent
fn from(plot: Plot<K>) -> PanelContent
Converts to this type from the input type.
Source§impl<K: ExactFamily> From<PlotAdapter<'_, K>> for PanelContent
impl<K: ExactFamily> From<PlotAdapter<'_, K>> for PanelContent
Source§fn from(adapter: PlotAdapter<'_, K>) -> Self
fn from(adapter: PlotAdapter<'_, K>) -> Self
Converts to this type from the input type.
Source§impl From<TextPanel> for PanelContent
impl From<TextPanel> for PanelContent
Source§fn from(text: TextPanel) -> PanelContent
fn from(text: TextPanel) -> PanelContent
Converts to this type from the input type.
Source§impl TryFrom<&Composite> for PanelContent
impl TryFrom<&Composite> for PanelContent
Source§impl TryFrom<&ImageAsset> for PanelContent
impl TryFrom<&ImageAsset> for PanelContent
Source§impl TryFrom<&Output> for PanelContent
impl TryFrom<&Output> for PanelContent
Source§impl TryFrom<&Path> for PanelContent
impl TryFrom<&Path> for PanelContent
Source§impl TryFrom<&PathBuf> for PanelContent
impl TryFrom<&PathBuf> for PanelContent
Source§impl TryFrom<&str> for PanelContent
impl TryFrom<&str> for PanelContent
Source§impl TryFrom<Composite> for PanelContent
impl TryFrom<Composite> for PanelContent
Source§impl TryFrom<ImageAsset> for PanelContent
impl TryFrom<ImageAsset> for PanelContent
Source§impl TryFrom<Output> for PanelContent
impl TryFrom<Output> for PanelContent
Source§impl TryFrom<PanelImage> for PanelContent
impl TryFrom<PanelImage> for PanelContent
Source§impl TryFrom<PathBuf> for PanelContent
impl TryFrom<PathBuf> for PanelContent
Auto Trait Implementations§
impl !RefUnwindSafe for PanelContent
impl !UnwindSafe for PanelContent
impl Forget for PanelContent
impl Freeze for PanelContentwhere
*const ArcInner<()> is !null: Freeze,
PhantomData<ArcInner<()>>: Freeze,
*const ArcInner<String> is !null: Freeze,
PhantomData<ArcInner<String>>: Freeze,
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
*const ArcInner<TextInstructions> is !null: Freeze,
PhantomData<ArcInner<TextInstructions>>: Freeze,
*const ArcInner<SharedPayload> is !null: Freeze,
PhantomData<ArcInner<SharedPayload>>: Freeze,
*const ArcInner<Asset> is !null: Freeze,
PhantomData<ArcInner<Asset>>: Freeze,
*const ArcInner<PathBuf> is !null: Freeze,
PhantomData<ArcInner<PathBuf>>: Freeze,
*const ArcInner<RenderedScene> is !null: Freeze,
PhantomData<ArcInner<RenderedScene>>: Freeze,
impl Move for PanelContent
impl Send for PanelContent
impl Sync for PanelContent
impl Unpin for PanelContent
impl UnsafeUnpin for PanelContentwhere
*const ArcInner<()> is !null: UnsafeUnpin,
PhantomData<ArcInner<()>>: UnsafeUnpin,
*const ArcInner<String> is !null: UnsafeUnpin,
PhantomData<ArcInner<String>>: UnsafeUnpin,
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
*const ArcInner<TextInstructions> is !null: UnsafeUnpin,
PhantomData<ArcInner<TextInstructions>>: UnsafeUnpin,
*const ArcInner<SharedPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedPayload>>: UnsafeUnpin,
*const ArcInner<Asset> is !null: UnsafeUnpin,
PhantomData<ArcInner<Asset>>: UnsafeUnpin,
*const ArcInner<PathBuf> is !null: UnsafeUnpin,
PhantomData<ArcInner<PathBuf>>: UnsafeUnpin,
*const ArcInner<RenderedScene> is !null: UnsafeUnpin,
PhantomData<ArcInner<RenderedScene>>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.