pub trait TextMethods {
    // Required methods
    fn SplitText(
        &self,
        offset: u32,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<Text>>, Error>;
    fn WholeText(&self) -> DOMString;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        data: DOMString,
    ) -> Result<Root<Dom<Text>>, Error>;
}

Required Methods§

source

fn SplitText( &self, offset: u32, _can_gc: CanGc, ) -> Result<Root<Dom<Text>>, Error>

source

fn WholeText(&self) -> DOMString

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, data: DOMString, ) -> Result<Root<Dom<Text>>, Error>

Object Safety§

This trait is not object safe.

Implementors§