pub enum ElementOrWindow<'a, Element, Window> {
Element(&'a Element),
Window(&'a Window),
}
Variants§
Element(&'a Element)
Window(&'a Window)
Trait Implementations§
source§impl<'a, Element: Clone, Window: Clone> Clone for ElementOrWindow<'a, Element, Window>
impl<'a, Element: Clone, Window: Clone> Clone for ElementOrWindow<'a, Element, Window>
source§fn clone(&self) -> ElementOrWindow<'a, Element, Window>
fn clone(&self) -> ElementOrWindow<'a, Element, Window>
Returns a copy 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> From<&ElementOrWindow<'a, Element, Window>> for DomElementOrWindow<'a>
impl<'a> From<&ElementOrWindow<'a, Element, Window>> for DomElementOrWindow<'a>
source§impl<'a> From<&ElementOrWindow<'a, Element, Window>> for DomNodeOrWindow<'a>
impl<'a> From<&ElementOrWindow<'a, Element, Window>> for DomNodeOrWindow<'a>
source§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<'a> From<ElementOrWindow<'a, Element, Window>> for DomElementOrWindow<'a>
impl<'a> From<ElementOrWindow<'a, Element, Window>> for DomElementOrWindow<'a>
source§impl<'a> From<ElementOrWindow<'a, Element, Window>> for DomNodeOrWindow<'a>
impl<'a> From<ElementOrWindow<'a, Element, Window>> for DomNodeOrWindow<'a>
Auto Trait Implementations§
impl<'a, Element, Window> Freeze for ElementOrWindow<'a, Element, Window>
impl<'a, Element, Window> RefUnwindSafe for ElementOrWindow<'a, Element, Window>where
Element: RefUnwindSafe,
Window: RefUnwindSafe,
impl<'a, Element, Window> Send for ElementOrWindow<'a, Element, Window>
impl<'a, Element, Window> Sync for ElementOrWindow<'a, Element, Window>
impl<'a, Element, Window> Unpin for ElementOrWindow<'a, Element, Window>
impl<'a, Element, Window> UnwindSafe for ElementOrWindow<'a, Element, Window>where
Element: RefUnwindSafe,
Window: RefUnwindSafe,
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