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§
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>
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.