Skip to main content

iri

Macro iri 

Source
macro_rules! iri {
    ($lit: tt) => { ... };
}
Expand description

Generates an IriS from a string literal.


#[macro_use]

let iri = iri!("https://example.org/");

assert_eq!(iri.as_str(), "https://example.org/");

At this moment the implementation leverages on oxrdf::NamedNode

Example


let iri = IriS::from_str("https://example.org/").unwrap();

assert_eq!(iri.as_str(), "https://example.org/")