[][src]Struct web_sys::Range

#[repr(transparent)]
pub struct Range { /* fields omitted */ }

The Range object

MDN Documentation

This API requires the following crate features to be activated: Range

Methods

impl Range[src]

pub fn new() -> Result<Range, JsValue>[src]

The new Range(..) constructor, creating a new instance of Range

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn clone_contents(&self) -> Result<DocumentFragment, JsValue>[src]

The cloneContents() method

MDN Documentation

This API requires the following crate features to be activated: DocumentFragment, Range

impl Range[src]

pub fn clone_range(&self) -> Range[src]

The cloneRange() method

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn collapse(&self)[src]

The collapse() method

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn collapse_with_to_start(&self, to_start: bool)[src]

The collapse() method

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn compare_boundary_points(
    &self,
    how: u16,
    source_range: &Range
) -> Result<i16, JsValue>
[src]

The compareBoundaryPoints() method

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn compare_point(&self, node: &Node, offset: u32) -> Result<i16, JsValue>[src]

The comparePoint() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn create_contextual_fragment(
    &self,
    fragment: &str
) -> Result<DocumentFragment, JsValue>
[src]

The createContextualFragment() method

MDN Documentation

This API requires the following crate features to be activated: DocumentFragment, Range

impl Range[src]

pub fn delete_contents(&self) -> Result<(), JsValue>[src]

The deleteContents() method

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn detach(&self)[src]

The detach() method

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn extract_contents(&self) -> Result<DocumentFragment, JsValue>[src]

The extractContents() method

MDN Documentation

This API requires the following crate features to be activated: DocumentFragment, Range

impl Range[src]

pub fn get_bounding_client_rect(&self) -> DomRect[src]

The getBoundingClientRect() method

MDN Documentation

This API requires the following crate features to be activated: DomRect, Range

impl Range[src]

pub fn get_client_rects(&self) -> Option<DomRectList>[src]

The getClientRects() method

MDN Documentation

This API requires the following crate features to be activated: DomRectList, Range

impl Range[src]

pub fn insert_node(&self, node: &Node) -> Result<(), JsValue>[src]

The insertNode() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn intersects_node(&self, node: &Node) -> Result<bool, JsValue>[src]

The intersectsNode() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn is_point_in_range(
    &self,
    node: &Node,
    offset: u32
) -> Result<bool, JsValue>
[src]

The isPointInRange() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn select_node(&self, ref_node: &Node) -> Result<(), JsValue>[src]

The selectNode() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn select_node_contents(&self, ref_node: &Node) -> Result<(), JsValue>[src]

The selectNodeContents() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn set_end(&self, ref_node: &Node, offset: u32) -> Result<(), JsValue>[src]

The setEnd() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn set_end_after(&self, ref_node: &Node) -> Result<(), JsValue>[src]

The setEndAfter() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn set_end_before(&self, ref_node: &Node) -> Result<(), JsValue>[src]

The setEndBefore() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn set_start(&self, ref_node: &Node, offset: u32) -> Result<(), JsValue>[src]

The setStart() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn set_start_after(&self, ref_node: &Node) -> Result<(), JsValue>[src]

The setStartAfter() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn set_start_before(&self, ref_node: &Node) -> Result<(), JsValue>[src]

The setStartBefore() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn surround_contents(&self, new_parent: &Node) -> Result<(), JsValue>[src]

The surroundContents() method

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn start_container(&self) -> Result<Node, JsValue>[src]

The startContainer getter

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn start_offset(&self) -> Result<u32, JsValue>[src]

The startOffset getter

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn end_container(&self) -> Result<Node, JsValue>[src]

The endContainer getter

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub fn end_offset(&self) -> Result<u32, JsValue>[src]

The endOffset getter

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn collapsed(&self) -> bool[src]

The collapsed getter

MDN Documentation

This API requires the following crate features to be activated: Range

impl Range[src]

pub fn common_ancestor_container(&self) -> Result<Node, JsValue>[src]

The commonAncestorContainer getter

MDN Documentation

This API requires the following crate features to be activated: Node, Range

impl Range[src]

pub const START_TO_START: u16[src]

impl Range[src]

pub const START_TO_END: u16[src]

impl Range[src]

pub const END_TO_END: u16[src]

impl Range[src]

pub const END_TO_START: u16[src]

Trait Implementations

impl AsRef<JsValue> for Range[src]

impl AsRef<Object> for Range[src]

impl AsRef<Range> for Range[src]

impl Clone for Range[src]

impl Debug for Range[src]

impl Deref for Range[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for Range[src]

impl From<JsValue> for Range[src]

impl From<Range> for JsValue[src]

impl From<Range> for Object[src]

impl FromWasmAbi for Range[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Range[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Range[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for Range[src]

impl OptionFromWasmAbi for Range[src]

impl OptionIntoWasmAbi for Range[src]

impl<'a> OptionIntoWasmAbi for &'a Range[src]

impl PartialEq<Range> for Range[src]

impl RefFromWasmAbi for Range[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Range>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for Range[src]

impl StructuralPartialEq for Range[src]

impl WasmDescribe for Range[src]

Auto Trait Implementations

impl RefUnwindSafe for Range

impl !Send for Range

impl !Sync for Range

impl Unpin for Range

impl UnwindSafe for Range

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.