Skip to main content

Iri

Trait Iri 

Source
pub trait Iri:
    Debug
    + Display
    + Hash
    + Eq
    + Ord
    + Clone {
    // Required method
    fn as_str(&self) -> &str;
}
Expand description

Represents an IRI (Internationalized Resource Identifier) in RDF.

Required Methods§

Source

fn as_str(&self) -> &str

Returns the IRI as a string slice.

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 Iri for NamedNode

Implements the Iri trait for OxNamedNode.

Provides access to the string representation of an IRI from an oxrdf named node.

Source§

fn as_str(&self) -> &str

Returns the IRI as a string slice.

Implementors§