pub enum OwnedElementOrWindow<Element, Window> {
Element(Element),
Window(Window),
}
Variants§
Trait Implementations§
Source§impl<Element: Clone, Window: Clone> Clone for OwnedElementOrWindow<Element, Window>
impl<Element: Clone, Window: Clone> Clone for OwnedElementOrWindow<Element, Window>
Source§fn clone(&self) -> OwnedElementOrWindow<Element, Window>
fn clone(&self) -> OwnedElementOrWindow<Element, Window>
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, Window> From<&'a OwnedElementOrWindow<Element, Window>> for ElementOrWindow<'a, Element, Window>
impl<'a, Element, Window> From<&'a OwnedElementOrWindow<Element, Window>> for ElementOrWindow<'a, Element, Window>
Source§fn from(value: &'a OwnedElementOrWindow<Element, Window>) -> Self
fn from(value: &'a OwnedElementOrWindow<Element, Window>) -> Self
Converts to this type from the input type.
Source§impl<Element: PartialEq, Window: PartialEq> PartialEq for OwnedElementOrWindow<Element, Window>
impl<Element: PartialEq, Window: PartialEq> PartialEq for OwnedElementOrWindow<Element, Window>
Source§fn eq(&self, other: &OwnedElementOrWindow<Element, Window>) -> bool
fn eq(&self, other: &OwnedElementOrWindow<Element, Window>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<Element, Window> StructuralPartialEq for OwnedElementOrWindow<Element, Window>
Auto Trait Implementations§
impl<Element, Window> Freeze for OwnedElementOrWindow<Element, Window>
impl<Element, Window> RefUnwindSafe for OwnedElementOrWindow<Element, Window>where
Element: RefUnwindSafe,
Window: RefUnwindSafe,
impl<Element, Window> Send for OwnedElementOrWindow<Element, Window>
impl<Element, Window> Sync for OwnedElementOrWindow<Element, Window>
impl<Element, Window> Unpin for OwnedElementOrWindow<Element, Window>
impl<Element, Window> UnwindSafe for OwnedElementOrWindow<Element, Window>where
Element: UnwindSafe,
Window: UnwindSafe,
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