script::dom::bindings::codegen::GenericBindings::RangeBinding::Range_Binding

Trait RangeMethods

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

Required Methods§

Source

fn CommonAncestorContainer(&self) -> DomRoot<D::Node>

Source

fn SetStart(&self, refNode: &D::Node, offset: u32) -> Fallible<()>

Source

fn SetEnd(&self, refNode: &D::Node, offset: u32) -> Fallible<()>

Source

fn SetStartBefore(&self, refNode: &D::Node) -> Fallible<()>

Source

fn SetStartAfter(&self, refNode: &D::Node) -> Fallible<()>

Source

fn SetEndBefore(&self, refNode: &D::Node) -> Fallible<()>

Source

fn SetEndAfter(&self, refNode: &D::Node) -> Fallible<()>

Source

fn Collapse(&self, toStart: bool)

Source

fn SelectNode(&self, refNode: &D::Node) -> Fallible<()>

Source

fn SelectNodeContents(&self, refNode: &D::Node) -> Fallible<()>

Source

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

Source

fn DeleteContents(&self) -> Fallible<()>

Source

fn ExtractContents( &self, _can_gc: CanGc, ) -> Fallible<DomRoot<D::DocumentFragment>>

Source

fn CloneContents( &self, _can_gc: CanGc, ) -> Fallible<DomRoot<D::DocumentFragment>>

Source

fn InsertNode(&self, node: &D::Node, _can_gc: CanGc) -> Fallible<()>

Source

fn SurroundContents(&self, newParent: &D::Node, _can_gc: CanGc) -> Fallible<()>

Source

fn CloneRange(&self, _can_gc: CanGc) -> DomRoot<D::Range>

Source

fn Detach(&self)

Source

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

Source

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

Source

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

Source

fn Stringifier(&self) -> DOMString

Source

fn CreateContextualFragment( &self, fragment: DOMString, _can_gc: CanGc, ) -> Fallible<DomRoot<D::DocumentFragment>>

Source

fn GetClientRects(&self, _can_gc: CanGc) -> DomRoot<D::DOMRectList>

Source

fn GetBoundingClientRect(&self, _can_gc: CanGc) -> DomRoot<D::DOMRect>

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Fallible<DomRoot<D::Range>>

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.

Implementors§