Trait script::dom::bindings::codegen::Bindings::TextBinding::Text_Binding::TextMethods
source · pub trait TextMethods<D: DomTypes> {
// 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§
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>
Object Safety§
This trait is not object safe.