pub enum ElementOrCss<'a> {
Element(&'a Element),
Css(CssStyleDeclaration),
}
Variants§
Element(&'a Element)
Css(CssStyleDeclaration)
Trait Implementations§
Source§impl<'a> From<&'a Element> for ElementOrCss<'a>
impl<'a> From<&'a Element> for ElementOrCss<'a>
Source§impl<'a> From<&'a HtmlElement> for ElementOrCss<'a>
impl<'a> From<&'a HtmlElement> for ElementOrCss<'a>
Source§fn from(value: &'a HtmlElement) -> Self
fn from(value: &'a HtmlElement) -> Self
Converts to this type from the input type.
Source§impl From<CssStyleDeclaration> for ElementOrCss<'_>
impl From<CssStyleDeclaration> for ElementOrCss<'_>
Source§fn from(value: CssStyleDeclaration) -> Self
fn from(value: CssStyleDeclaration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ElementOrCss<'a>
impl<'a> RefUnwindSafe for ElementOrCss<'a>
impl<'a> !Send for ElementOrCss<'a>
impl<'a> !Sync for ElementOrCss<'a>
impl<'a> Unpin for ElementOrCss<'a>
impl<'a> UnwindSafe for ElementOrCss<'a>
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