Trait script::dom::bindings::codegen::Bindings::TextDecoderBinding::TextDecoder_Binding::TextDecoderMethods
source · 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§
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>
Object Safety§
This trait is not object safe.