pub(crate) trait TextMethods<D: DomTypes> {
// Required methods
fn SplitText(
&self,
offset: u32,
_can_gc: CanGc,
) -> Fallible<DomRoot<D::Text>>;
fn WholeText(&self) -> DOMString;
fn GetAssignedSlot(&self) -> Option<DomRoot<D::HTMLSlotElement>>;
fn Constructor(
global: &D::Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
data: DOMString,
) -> Fallible<DomRoot<D::Text>>;
}
Required Methods§
fn SplitText(&self, offset: u32, _can_gc: CanGc) -> Fallible<DomRoot<D::Text>>
fn WholeText(&self) -> DOMString
fn GetAssignedSlot(&self) -> Option<DomRoot<D::HTMLSlotElement>>
fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, data: DOMString, ) -> Fallible<DomRoot<D::Text>>
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.