pub trait TextEncoderMethods {
    // Required methods
    fn Encoding(&self) -> DOMString;
    fn Encode(&self, cx: SafeJSContext, input: USVString) -> Uint8Array;
    fn EncodeInto(
        &self,
        source: USVString,
        destination: CustomAutoRooterGuard<'_, Uint8Array>,
    ) -> TextEncoderEncodeIntoResult;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Result<Root<Dom<TextEncoder>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§