Trait Statement

Source
pub trait Statement {
    // Required methods
    fn subject(&self) -> &dyn Term;
    fn predicate(&self) -> &dyn Term;
    fn object(&self) -> &dyn Term;

    // Provided method
    fn context(&self) -> Option<&dyn Term> { ... }
}
Expand description

An RDF statement.

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

Required Methods§

Source

fn subject(&self) -> &dyn Term

Source

fn predicate(&self) -> &dyn Term

Source

fn object(&self) -> &dyn Term

Provided Methods§

Source

fn context(&self) -> Option<&dyn Term>

Trait Implementations§

Source§

impl Debug for dyn Statement

Source§

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

Formats the value using the given formatter. Read more

Implementors§