pub trait ShadowRootMethods<D: DomTypes> {
Show 20 methods
// Required methods
fn Mode(&self) -> ShadowRootMode;
fn DelegatesFocus(&self) -> bool;
fn SlotAssignment(&self) -> SlotAssignmentMode;
fn Clonable(&self) -> bool;
fn Serializable(&self) -> bool;
fn Host(&self) -> DomRoot<D::Element>;
fn GetOnslotchange(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnslotchange(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
fn SetHTMLUnsafe(
&self,
cx: &mut JSContext,
html: TrustedHTMLOrString<D>,
options: &SetHTMLUnsafeOptions<D>,
) -> Fallible<()>;
fn GetHTML(
&self,
cx: &mut JSContext,
options: &GetHTMLOptions<D>,
) -> DOMString;
fn GetInnerHTML(
&self,
cx: &mut JSContext,
) -> Fallible<TrustedHTMLOrNullIsEmptyString<D>>;
fn SetInnerHTML(
&self,
cx: &mut JSContext,
value: TrustedHTMLOrNullIsEmptyString<D>,
) -> ErrorResult;
fn SetHTML(
&self,
cx: &mut JSContext,
html: DOMString,
options: &SetHTMLOptions<D>,
) -> Fallible<()>;
fn ElementFromPoint(
&self,
x: Finite<f64>,
y: Finite<f64>,
) -> Option<DomRoot<D::Element>>;
fn ElementsFromPoint(
&self,
x: Finite<f64>,
y: Finite<f64>,
) -> Vec<DomRoot<D::Element>> ⓘ;
fn GetActiveElement(&self) -> Option<DomRoot<D::Element>>;
fn StyleSheets(&self) -> DomRoot<D::StyleSheetList>;
fn AdoptedStyleSheets(
&self,
cx: SafeJSContext,
_can_gc: CanGc,
retval: MutableHandleValue<'_>,
);
fn SetAdoptedStyleSheets(
&self,
cx: SafeJSContext,
value: HandleValue<'_>,
_can_gc: CanGc,
) -> ErrorResult;
fn GetFullscreenElement(&self) -> Option<DomRoot<D::Element>>;
}Required Methods§
fn Mode(&self) -> ShadowRootMode
fn DelegatesFocus(&self) -> bool
fn SlotAssignment(&self) -> SlotAssignmentMode
fn Clonable(&self) -> bool
fn Serializable(&self) -> bool
fn Host(&self) -> DomRoot<D::Element>
fn GetOnslotchange( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnslotchange( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
fn SetHTMLUnsafe( &self, cx: &mut JSContext, html: TrustedHTMLOrString<D>, options: &SetHTMLUnsafeOptions<D>, ) -> Fallible<()>
fn GetHTML(&self, cx: &mut JSContext, options: &GetHTMLOptions<D>) -> DOMString
fn GetInnerHTML( &self, cx: &mut JSContext, ) -> Fallible<TrustedHTMLOrNullIsEmptyString<D>>
fn SetInnerHTML( &self, cx: &mut JSContext, value: TrustedHTMLOrNullIsEmptyString<D>, ) -> ErrorResult
fn SetHTML( &self, cx: &mut JSContext, html: DOMString, options: &SetHTMLOptions<D>, ) -> Fallible<()>
fn ElementFromPoint( &self, x: Finite<f64>, y: Finite<f64>, ) -> Option<DomRoot<D::Element>>
fn ElementsFromPoint( &self, x: Finite<f64>, y: Finite<f64>, ) -> Vec<DomRoot<D::Element>> ⓘ
fn GetActiveElement(&self) -> Option<DomRoot<D::Element>>
fn StyleSheets(&self) -> DomRoot<D::StyleSheetList>
fn AdoptedStyleSheets( &self, cx: SafeJSContext, _can_gc: CanGc, retval: MutableHandleValue<'_>, )
fn SetAdoptedStyleSheets( &self, cx: SafeJSContext, value: HandleValue<'_>, _can_gc: CanGc, ) -> ErrorResult
fn GetFullscreenElement(&self) -> Option<DomRoot<D::Element>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".