pub trait HTMLScriptElementMethods<D: DomTypes> {
Show 29 methods // Required methods fn Src(&self) -> TrustedScriptURLOrUSVString<D>; fn SetSrc( &self, value: TrustedScriptURLOrUSVString<D>, _can_gc: CanGc, ) -> ErrorResult; fn Type(&self) -> DOMString; fn SetType(&self, value: DOMString); fn NoModule(&self) -> bool; fn SetNoModule(&self, value: bool); fn Charset(&self) -> DOMString; fn SetCharset(&self, value: DOMString); fn Async(&self) -> bool; fn SetAsync(&self, value: bool, _can_gc: CanGc); fn Defer(&self) -> bool; fn SetDefer(&self, value: bool); fn GetCrossOrigin(&self) -> Option<DOMString>; fn SetCrossOrigin(&self, value: Option<DOMString>, _can_gc: CanGc); fn InnerText(&self, _can_gc: CanGc) -> TrustedScriptOrString<D>; fn SetInnerText( &self, value: TrustedScriptOrString<D>, _can_gc: CanGc, ) -> ErrorResult; fn Text(&self) -> TrustedScriptOrString<D>; fn SetText( &self, value: TrustedScriptOrString<D>, _can_gc: CanGc, ) -> ErrorResult; fn GetTextContent(&self) -> Option<TrustedScriptOrString<D>>; fn SetTextContent( &self, value: Option<TrustedScriptOrString<D>>, _can_gc: CanGc, ) -> ErrorResult; fn Integrity(&self) -> DOMString; fn SetIntegrity(&self, value: DOMString); fn ReferrerPolicy(&self) -> DOMString; fn SetReferrerPolicy(&self, value: DOMString); fn Supports(global: &D::Window, type_: DOMString) -> bool; fn Event(&self) -> DOMString; fn SetEvent(&self, value: DOMString); fn HtmlFor(&self) -> DOMString; fn SetHtmlFor(&self, value: DOMString);
}

Required Methods§

Source

fn Src(&self) -> TrustedScriptURLOrUSVString<D>

Source

fn SetSrc( &self, value: TrustedScriptURLOrUSVString<D>, _can_gc: CanGc, ) -> ErrorResult

Source

fn Type(&self) -> DOMString

Source

fn SetType(&self, value: DOMString)

Source

fn NoModule(&self) -> bool

Source

fn SetNoModule(&self, value: bool)

Source

fn Charset(&self) -> DOMString

Source

fn SetCharset(&self, value: DOMString)

Source

fn Async(&self) -> bool

Source

fn SetAsync(&self, value: bool, _can_gc: CanGc)

Source

fn Defer(&self) -> bool

Source

fn SetDefer(&self, value: bool)

Source

fn GetCrossOrigin(&self) -> Option<DOMString>

Source

fn SetCrossOrigin(&self, value: Option<DOMString>, _can_gc: CanGc)

Source

fn InnerText(&self, _can_gc: CanGc) -> TrustedScriptOrString<D>

Source

fn SetInnerText( &self, value: TrustedScriptOrString<D>, _can_gc: CanGc, ) -> ErrorResult

Source

fn Text(&self) -> TrustedScriptOrString<D>

Source

fn SetText( &self, value: TrustedScriptOrString<D>, _can_gc: CanGc, ) -> ErrorResult

Source

fn GetTextContent(&self) -> Option<TrustedScriptOrString<D>>

Source

fn SetTextContent( &self, value: Option<TrustedScriptOrString<D>>, _can_gc: CanGc, ) -> ErrorResult

Source

fn Integrity(&self) -> DOMString

Source

fn SetIntegrity(&self, value: DOMString)

Source

fn ReferrerPolicy(&self) -> DOMString

Source

fn SetReferrerPolicy(&self, value: DOMString)

Source

fn Supports(global: &D::Window, type_: DOMString) -> bool

Source

fn Event(&self) -> DOMString

Source

fn SetEvent(&self, value: DOMString)

Source

fn HtmlFor(&self) -> DOMString

Source

fn SetHtmlFor(&self, value: DOMString)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§