[][src]Enum kg_tree::opath::Interpolation

pub enum Interpolation {
    Empty,
    Simple(String),
    Expr(Opath),
}

Variants

EmptySimple(String)Expr(Opath)

Methods

impl Interpolation[src]

pub fn parse(input: Cow<str>) -> Result<Interpolation, OpathParseError>[src]

pub fn parse_always(input: Cow<str>) -> Interpolation[src]

pub fn parse_delims(
    input: Cow<str>,
    open_delim: &str,
    close_delim: &str
) -> Result<Interpolation, OpathParseError>
[src]

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

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

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

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

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

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

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

Trait Implementations

impl Clone for Interpolation[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Interpolation> for Interpolation[src]

impl Eq for Interpolation[src]

impl Debug for Interpolation[src]

impl Hash for Interpolation[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 Interpolation[src]

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

Auto Trait Implementations

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, 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]