script::dom::bindings::codegen::Bindings::TextDecoderBinding

Trait TextDecoderMethods

Source
pub(crate) trait TextDecoderMethods<D>
where D: DomTypes,
{ // Required methods fn Encoding(&self) -> DOMString; fn Fatal(&self) -> bool; fn IgnoreBOM(&self) -> bool; fn Decode( &self, input: Option<ArrayBufferViewOrArrayBuffer>, options: &TextDecodeOptions, ) -> Result<USVString, Error>; fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, label: DOMString, options: &TextDecoderOptions, ) -> Result<Root<Dom<<D as DomTypes>::TextDecoder>>, Error>; }

Required Methods§

Source

fn Encoding(&self) -> DOMString

Source

fn Fatal(&self) -> bool

Source

fn IgnoreBOM(&self) -> bool

Source

fn Decode( &self, input: Option<ArrayBufferViewOrArrayBuffer>, options: &TextDecodeOptions, ) -> Result<USVString, Error>

Source

fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, label: DOMString, options: &TextDecoderOptions, ) -> Result<Root<Dom<<D as DomTypes>::TextDecoder>>, Error>

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§