Skip to main content

rudof_rdf/rdf_core/term/
iri.rs

1use std::{
2    fmt::{Debug, Display},
3    hash::Hash,
4};
5
6/// Represents an IRI (Internationalized Resource Identifier) in RDF.
7pub trait Iri: Debug + Display + Hash + Eq + Ord + Clone {
8    /// Returns the IRI as a string slice.
9    fn as_str(&self) -> &str;
10}