[−][src]Struct sophia_api::term::test::TestTerm
A naive implementation of TTerm, with no check whatsoever.
Implementations
impl<'a, T> TestTerm<T> where
T: From<&'a str>,
[src]
T: From<&'a str>,
pub fn iri(value: &'a str) -> Self
[src]
pub fn iri2(ns: &'a str, suffix: &'a str) -> Self
[src]
pub fn bnode(value: &'a str) -> Self
[src]
pub fn var(value: &'a str) -> Self
[src]
pub fn lit_dt(value: &'a str, datatype: SimpleIri<'a>) -> Self
[src]
pub fn lit_lang(value: &'a str, tag: &'a str) -> Self
[src]
Trait Implementations
impl<T: Clone> Clone for TestTerm<T>
[src]
impl<T: Copy> Copy for TestTerm<T>
[src]
impl<T> CopyTerm for TestTerm<T> where
T: for<'x> From<&'x str>,
[src]
T: for<'x> From<&'x str>,
impl<T: Debug> Debug for TestTerm<T>
[src]
impl<T> Display for TestTerm<T> where
T: AsRef<str>,
[src]
T: AsRef<str>,
impl<T> Eq for TestTerm<T> where
T: AsRef<str> + Sized,
[src]
T: AsRef<str> + Sized,
impl From<SimpleIri<'static>> for TestTerm<&'static str>
[src]
impl<T> Hash for TestTerm<T> where
T: AsRef<str>,
[src]
T: AsRef<str>,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized, U> PartialEq<T> for TestTerm<U> where
T: TTerm,
U: AsRef<str>,
[src]
T: TTerm,
U: AsRef<str>,
impl<T: ?Sized, U> PartialOrd<T> for TestTerm<U> where
T: TTerm,
U: AsRef<str>,
[src]
T: TTerm,
U: AsRef<str>,
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> TTerm for TestTerm<T> where
T: AsRef<str>,
[src]
T: AsRef<str>,
Auto Trait Implementations
impl<T> RefUnwindSafe for TestTerm<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for TestTerm<T> where
T: Send,
T: Send,
impl<T> Sync for TestTerm<T> where
T: Sync,
T: Sync,
impl<T> Unpin for TestTerm<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for TestTerm<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CopiableTerm for T where
T: TTerm + ?Sized,
[src]
T: TTerm + ?Sized,
fn copied<U>(&Self) -> U where
U: CopyTerm,
[src]
U: CopyTerm,
fn try_copied<U>(&Self) -> Result<U, <U as TryCopyTerm>::Error> where
U: TryCopyTerm,
[src]
U: TryCopyTerm,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<U> TermMatcher for U where
U: TTerm + ?Sized,
[src]
U: TTerm + ?Sized,
type Term = U
Type of TTerm
used internally by this matcher.
fn constant(&Self) -> Option<&U>
[src]
fn matches<T>(&Self, &T) -> bool where
T: TTerm + ?Sized,
[src]
T: TTerm + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,