pub 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,
    ) -> Result<USVString, Error>;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        label: DOMString,
        options: &TextDecoderOptions,
    ) -> Result<Root<Dom<TextDecoder>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§