Trait URIOrRefTrait

Source
pub trait URIOrRefTrait:
    Display
    + Debug
    + Clone
    + Hash
    + Serialize
    + Sealed {
    // Required methods
    fn base(&self) -> &BaseURI;
    fn as_uri(&self) -> URIRef<'_>;

    // Provided method
    fn to_iri(&self) -> NamedNode { ... }
}
Available on crate feature serde only.

Required Methodsยง

Source

fn base(&self) -> &BaseURI

Source

fn as_uri(&self) -> URIRef<'_>

Provided Methodsยง

Source

fn to_iri(&self) -> NamedNode

Available on crate feature rdf only.

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<U: URITrait> URIOrRefTrait for &U

Sourceยง

fn base(&self) -> &BaseURI

Available on crate feature serde only.
Sourceยง

fn as_uri(&self) -> URIRef<'_>

Available on crate feature serde only.

Implementorsยง