pub struct Variable<'a> {
pub name: &'a str,
}
Expand description
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§
Source§impl<'a> From<Variable<'a>> for GeneralizedTerm<'a>
impl<'a> From<Variable<'a>> for GeneralizedTerm<'a>
Source§fn from(other: Variable<'a>) -> GeneralizedTerm<'a>
fn from(other: Variable<'a>) -> GeneralizedTerm<'a>
Converts to this type from the input type.
Source§impl<'a> Ord for Variable<'a>
impl<'a> Ord for Variable<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Variable<'a>
impl<'a> PartialOrd for Variable<'a>
impl<'a> Copy for Variable<'a>
impl<'a> Eq for Variable<'a>
impl<'a> StructuralPartialEq for Variable<'a>
Auto Trait Implementations§
impl<'a> Freeze for Variable<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more