pub(crate) trait TextMethods<D>where
D: DomTypes,{
// Required methods
fn SplitText(
&self,
offset: u32,
_can_gc: CanGc,
) -> Result<Root<Dom<<D as DomTypes>::Text>>, Error>;
fn WholeText(&self) -> DOMString;
fn GetAssignedSlot(
&self,
) -> Option<Root<Dom<<D as DomTypes>::HTMLSlotElement>>>;
fn Constructor(
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
data: DOMString,
) -> Result<Root<Dom<<D as DomTypes>::Text>>, Error>;
}
Required Methods§
fn SplitText( &self, offset: u32, _can_gc: CanGc, ) -> Result<Root<Dom<<D as DomTypes>::Text>>, Error>
fn WholeText(&self) -> DOMString
fn GetAssignedSlot(&self) -> Option<Root<Dom<<D as DomTypes>::HTMLSlotElement>>>
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, data: DOMString, ) -> Result<Root<Dom<<D as DomTypes>::Text>>, 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.