Struct rio_api::model::Variable[][src]

pub struct Variable<'a> {
    pub name: &'a str,
}

A SPARQL variable.

The default string formatter is returning a SPARQL compatible representation.

use rio_api::model::Variable;

assert_eq!(
    "?foobar",
    Variable { name: "foobar" }.to_string()
)

Using it requires to enable the generalized feature.

Fields

name: &'a str

The name of the variable itself.

Trait Implementations

impl<'a> Clone for Variable<'a>[src]

impl<'a> Copy for Variable<'a>[src]

impl<'a> Debug for Variable<'a>[src]

impl<'a> Display for Variable<'a>[src]

impl<'a> Eq for Variable<'a>[src]

impl<'a> From<Variable<'a>> for GeneralizedTerm<'a>[src]

impl<'a> Hash for Variable<'a>[src]

impl<'a> Ord for Variable<'a>[src]

impl<'a> PartialEq<Variable<'a>> for Variable<'a>[src]

impl<'a> PartialOrd<Variable<'a>> for Variable<'a>[src]

impl<'a> StructuralEq for Variable<'a>[src]

impl<'a> StructuralPartialEq for Variable<'a>[src]

impl<'a> TTerm for Variable<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Variable<'a>

impl<'a> Send for Variable<'a>

impl<'a> Sync for Variable<'a>

impl<'a> Unpin for Variable<'a>

impl<'a> UnwindSafe for Variable<'a>

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> CopiableTerm for T where
    T: TTerm + ?Sized
[src]

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

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

impl<U> TermMatcher for U where
    U: TTerm + ?Sized
[src]

type Term = U

Type of TTerm used internally by this matcher.

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

type Owned = T

The resulting type after obtaining ownership.

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.