Trait Subject

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

    // Provided methods
    fn is_iri(&self) -> bool { ... }
    fn is_blank_node(&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_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 Subject for Subject

Source§

fn kind(&self) -> TermKind

Source§

impl Subject for SubjectRef<'_>

Source§

fn kind(&self) -> TermKind

Implementors§