Skip to main content

TextDecoderMethods

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

Required Methods§

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§