Trait Term

Source
pub trait Term:
    Debug
    + Clone
    + Display
    + PartialEq
    + Eq
    + Hash {
    // Required method
    fn kind(&self) -> TermKind;

    // Provided methods
    fn is_iri(&self) -> bool { ... }
    fn is_blank_node(&self) -> bool { ... }
    fn is_literal(&self) -> bool { ... }
    fn is_triple(&self) -> bool { ... }
}

Required Methods§

Source

fn kind(&self) -> TermKind

Provided Methods§

Source

fn is_iri(&self) -> bool

Source

fn is_blank_node(&self) -> bool

Source

fn is_literal(&self) -> bool

Source

fn is_triple(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Term for Term

Source§

fn kind(&self) -> TermKind

Implementors§