Trait Term

Source
pub trait Term {
    // Required methods
    fn kind(&self) -> TermKind;
    fn as_str(&self) -> Cow<'_, str>;

    // Provided methods
    fn is_iri(&self) -> bool { ... }
    fn is_bnode(&self) -> bool { ... }
    fn is_literal(&self) -> bool { ... }
}
Expand description

An RDF term.

See: https://www.w3.org/TR/rdf12-concepts/#dfn-rdf-term

Required Methods§

Source

fn kind(&self) -> TermKind

Source

fn as_str(&self) -> Cow<'_, str>

Provided Methods§

Source

fn is_iri(&self) -> bool

Source

fn is_bnode(&self) -> bool

Source

fn is_literal(&self) -> bool

Trait Implementations§

Source§

impl Debug for dyn Term

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&dyn Term> for HeapTerm

Source§

fn from(term: &dyn Term) -> Self

Converts to this type from the input type.

Implementors§