[][src]Struct stdweb::web::ShadowRoot

pub struct ShadowRoot(_);

The ShadowRoot interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.

(JavaScript docs)

Methods

impl ShadowRoot[src]

pub fn mode(&self) -> ShadowRootMode[src]

The mode property of the ShadowRoot specifies its mode.

(JavaScript docs)

pub fn host(&self) -> Element[src]

The host read-only property of the ShadowRoot returns a reference to the DOM element the ShadowRoot is attached to.

(JavaScript docs)

Trait Implementations

impl JsSerialize for ShadowRoot[src]

impl TryFrom<EventTarget> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Node> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<DocumentFragment> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<ShadowRoot> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for ShadowRoot[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for ShadowRoot[src]

impl ReferenceType for ShadowRoot[src]

impl IEventTarget for ShadowRoot[src]

impl INode for ShadowRoot[src]

impl IParentNode for ShadowRoot[src]

impl AsRef<Reference> for ShadowRoot[src]

impl From<ShadowRoot> for EventTarget[src]

impl From<ShadowRoot> for Node[src]

impl From<ShadowRoot> for DocumentFragment[src]

impl From<ShadowRoot> for Reference[src]

impl Clone for ShadowRoot[src]

impl Eq for ShadowRoot[src]

impl PartialEq<ShadowRoot> for ShadowRoot[src]

impl Debug for ShadowRoot[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]