pub trait RangeMethods<D: DomTypes> {
Show 24 methods // Required methods fn CommonAncestorContainer(&self) -> Root<Dom<Node>>; fn SetStart(&self, refNode: &Node, offset: u32) -> Result<(), Error>; fn SetEnd(&self, refNode: &Node, offset: u32) -> Result<(), Error>; fn SetStartBefore(&self, refNode: &Node) -> Result<(), Error>; fn SetStartAfter(&self, refNode: &Node) -> Result<(), Error>; fn SetEndBefore(&self, refNode: &Node) -> Result<(), Error>; fn SetEndAfter(&self, refNode: &Node) -> Result<(), Error>; fn Collapse(&self, toStart: bool); fn SelectNode(&self, refNode: &Node) -> Result<(), Error>; fn SelectNodeContents(&self, refNode: &Node) -> Result<(), Error>; fn CompareBoundaryPoints( &self, how: u16, sourceRange: &Range, ) -> Result<i16, Error>; fn DeleteContents(&self) -> Result<(), Error>; fn ExtractContents( &self, _can_gc: CanGc, ) -> Result<Root<Dom<DocumentFragment>>, Error>; fn CloneContents( &self, _can_gc: CanGc, ) -> Result<Root<Dom<DocumentFragment>>, Error>; fn InsertNode(&self, node: &Node, _can_gc: CanGc) -> Result<(), Error>; fn SurroundContents( &self, newParent: &Node, _can_gc: CanGc, ) -> Result<(), Error>; fn CloneRange(&self, _can_gc: CanGc) -> Root<Dom<Range>>; fn Detach(&self); fn IsPointInRange(&self, node: &Node, offset: u32) -> Result<bool, Error>; fn ComparePoint(&self, node: &Node, offset: u32) -> Result<i16, Error>; fn IntersectsNode(&self, node: &Node) -> bool; fn Stringifier(&self) -> DOMString; fn CreateContextualFragment( &self, fragment: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<DocumentFragment>>, Error>; fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<Range>>, Error>;
}

Required Methods§

source

fn CommonAncestorContainer(&self) -> Root<Dom<Node>>

source

fn SetStart(&self, refNode: &Node, offset: u32) -> Result<(), Error>

source

fn SetEnd(&self, refNode: &Node, offset: u32) -> Result<(), Error>

source

fn SetStartBefore(&self, refNode: &Node) -> Result<(), Error>

source

fn SetStartAfter(&self, refNode: &Node) -> Result<(), Error>

source

fn SetEndBefore(&self, refNode: &Node) -> Result<(), Error>

source

fn SetEndAfter(&self, refNode: &Node) -> Result<(), Error>

source

fn Collapse(&self, toStart: bool)

source

fn SelectNode(&self, refNode: &Node) -> Result<(), Error>

source

fn SelectNodeContents(&self, refNode: &Node) -> Result<(), Error>

source

fn CompareBoundaryPoints( &self, how: u16, sourceRange: &Range, ) -> Result<i16, Error>

source

fn DeleteContents(&self) -> Result<(), Error>

source

fn ExtractContents( &self, _can_gc: CanGc, ) -> Result<Root<Dom<DocumentFragment>>, Error>

source

fn CloneContents( &self, _can_gc: CanGc, ) -> Result<Root<Dom<DocumentFragment>>, Error>

source

fn InsertNode(&self, node: &Node, _can_gc: CanGc) -> Result<(), Error>

source

fn SurroundContents( &self, newParent: &Node, _can_gc: CanGc, ) -> Result<(), Error>

source

fn CloneRange(&self, _can_gc: CanGc) -> Root<Dom<Range>>

source

fn Detach(&self)

source

fn IsPointInRange(&self, node: &Node, offset: u32) -> Result<bool, Error>

source

fn ComparePoint(&self, node: &Node, offset: u32) -> Result<i16, Error>

source

fn IntersectsNode(&self, node: &Node) -> bool

source

fn Stringifier(&self) -> DOMString

source

fn CreateContextualFragment( &self, fragment: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<DocumentFragment>>, Error>

source

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

Object Safety§

This trait is not object safe.

Implementors§