pub(crate) trait TextDecoderMethods<D: DomTypes> {
    // Required methods
    fn Encoding(&self) -> DOMString;
    fn Fatal(&self) -> bool;
    fn IgnoreBOM(&self) -> bool;
    fn Decode(
        &self,
        input: Option<ArrayBufferViewOrArrayBuffer>,
        options: &TextDecodeOptions,
    ) -> Fallible<USVString>;
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        label: DOMString,
        options: &TextDecoderOptions,
    ) -> Fallible<DomRoot<D::TextDecoder>>;
}

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, ) -> Fallible<USVString>

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, label: DOMString, options: &TextDecoderOptions, ) -> Fallible<DomRoot<D::TextDecoder>>

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§