Trait script::dom::bindings::codegen::Bindings::RangeBinding::Range_Binding::RangeMethods
source · pub trait RangeMethods {
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§
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>
Object Safety§
This trait is not object safe.