[][src]Struct web_sys::XPathExpression

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

The XPathExpression object

MDN Documentation

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

Methods

impl XPathExpression[src]

pub fn evaluate(&self, context_node: &Node) -> Result<XPathResult, JsValue>[src]

The evaluate() method

MDN Documentation

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

impl XPathExpression[src]

pub fn evaluate_with_type(
    &self,
    context_node: &Node,
    type_: u16
) -> Result<XPathResult, JsValue>
[src]

The evaluate() method

MDN Documentation

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

impl XPathExpression[src]

pub fn evaluate_with_type_and_result(
    &self,
    context_node: &Node,
    type_: u16,
    result: Option<&Object>
) -> Result<XPathResult, JsValue>
[src]

The evaluate() method

MDN Documentation

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

Trait Implementations

impl AsRef<JsValue> for XPathExpression[src]

impl AsRef<Object> for XPathExpression[src]

impl AsRef<XPathExpression> for XPathExpression[src]

impl Clone for XPathExpression[src]

impl Debug for XPathExpression[src]

impl Deref for XPathExpression[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for XPathExpression[src]

impl From<JsValue> for XPathExpression[src]

impl From<XPathExpression> for JsValue[src]

impl From<XPathExpression> for Object[src]

impl FromWasmAbi for XPathExpression[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 XPathExpression[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 XPathExpression[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 XPathExpression[src]

impl OptionFromWasmAbi for XPathExpression[src]

impl OptionIntoWasmAbi for XPathExpression[src]

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

impl PartialEq<XPathExpression> for XPathExpression[src]

impl RefFromWasmAbi for XPathExpression[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<XPathExpression>

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 XPathExpression[src]

impl StructuralPartialEq for XPathExpression[src]

impl WasmDescribe for XPathExpression[src]

Auto Trait Implementations

impl RefUnwindSafe for XPathExpression

impl !Send for XPathExpression

impl !Sync for XPathExpression

impl Unpin for XPathExpression

impl UnwindSafe for XPathExpression

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.