[][src]Struct kg_tree::opath::Opath

pub struct Opath { /* fields omitted */ }

Methods

impl Opath[src]

pub fn parse(expr: &str) -> Result<Opath, OpathParseError>[src]

pub fn parse_opt_delims(
    expr: &str,
    open_delim: &str,
    close_delim: &str
) -> Result<Opath, OpathParseError>
[src]

pub fn between<'a>(from: &NodeRef, to: &NodeRef) -> Opath[src]

pub fn from<'a>(node: &NodeRef) -> Opath[src]

pub fn string(value: String) -> Opath[src]

pub fn boolean(value: bool) -> Opath[src]

pub fn null() -> Opath[src]

pub fn root() -> Opath[src]

pub fn current() -> Opath[src]

pub fn json(json: String) -> Opath[src]

pub fn apply(&self, root: &NodeRef, current: &NodeRef) -> ExprResult<NodeSet>[src]

pub fn apply_ext(
    &self,
    root: &NodeRef,
    current: &NodeRef,
    scope: &Scope
) -> ExprResult<NodeSet>
[src]

pub fn apply_one(
    &self,
    root: &NodeRef,
    current: &NodeRef
) -> ExprResult<NodeRef>
[src]

pub fn apply_one_ext(
    &self,
    root: &NodeRef,
    current: &NodeRef,
    scope: &Scope
) -> ExprResult<NodeRef>
[src]

pub fn parent_path(&self) -> Option<Opath>[src]

Trait Implementations

impl Clone for Opath[src]

impl Default for Opath[src]

impl PartialEq<Opath> for Opath[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for Opath[src]

impl Display for Opath[src]

impl Debug for Opath[src]

impl Hash for Opath[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for Opath[src]

impl<'de> Deserialize<'de> for Opath[src]

Auto Trait Implementations

impl Sync for Opath

impl Send for Opath

impl Unpin for Opath

impl RefUnwindSafe for Opath

impl UnwindSafe for Opath

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]