pub enum OwnedElementOrVirtual<Element: 'static> {
Element(Element),
VirtualElement(Box<dyn VirtualElement<Element>>),
}
Variants§
Element(Element)
VirtualElement(Box<dyn VirtualElement<Element>>)
Implementations§
Trait Implementations§
Source§impl<Element: Clone + 'static> Clone for OwnedElementOrVirtual<Element>
impl<Element: Clone + 'static> Clone for OwnedElementOrVirtual<Element>
Source§fn clone(&self) -> OwnedElementOrVirtual<Element>
fn clone(&self) -> OwnedElementOrVirtual<Element>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, Element: Clone> From<&'a OwnedElementOrVirtual<Element>> for ElementOrVirtual<'a, Element>
impl<'a, Element: Clone> From<&'a OwnedElementOrVirtual<Element>> for ElementOrVirtual<'a, Element>
Source§fn from(value: &'a OwnedElementOrVirtual<Element>) -> Self
fn from(value: &'a OwnedElementOrVirtual<Element>) -> Self
Converts to this type from the input type.
Source§impl<Element> From<Box<dyn VirtualElement<Element>>> for OwnedElementOrVirtual<Element>
impl<Element> From<Box<dyn VirtualElement<Element>>> for OwnedElementOrVirtual<Element>
Source§fn from(value: Box<dyn VirtualElement<Element>>) -> Self
fn from(value: Box<dyn VirtualElement<Element>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Element> Freeze for OwnedElementOrVirtual<Element>where
Element: Freeze,
impl<Element> !RefUnwindSafe for OwnedElementOrVirtual<Element>
impl<Element> !Send for OwnedElementOrVirtual<Element>
impl<Element> !Sync for OwnedElementOrVirtual<Element>
impl<Element> Unpin for OwnedElementOrVirtual<Element>where
Element: Unpin,
impl<Element> !UnwindSafe for OwnedElementOrVirtual<Element>
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