pub struct NamedNode<'a> {
pub iri: &'a str,
}
Expand description
An RDF IRI.
The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation.
use rio_api::model::NamedNode;
assert_eq!(
"<http://example.com/foo>",
NamedNode { iri: "http://example.com/foo" }.to_string()
)
Fields§
§iri: &'a str
The IRI itself.
Trait Implementations§
source§impl<'a> From<NamedNode<'a>> for GeneralizedTerm<'a>
Available on crate feature generalized
only.
impl<'a> From<NamedNode<'a>> for GeneralizedTerm<'a>
Available on crate feature
generalized
only.source§fn from(other: NamedNode<'a>) -> GeneralizedTerm<'a>
fn from(other: NamedNode<'a>) -> GeneralizedTerm<'a>
Converts to this type from the input type.
source§impl<'a> Ord for NamedNode<'a>
impl<'a> Ord for NamedNode<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialOrd for NamedNode<'a>
impl<'a> PartialOrd for NamedNode<'a>
source§impl<'a> TryFrom<GeneralizedTerm<'a>> for NamedNode<'a>
Available on crate feature generalized
only.
impl<'a> TryFrom<GeneralizedTerm<'a>> for NamedNode<'a>
Available on crate feature
generalized
only.§type Error = StrictRdfError
type Error = StrictRdfError
The type returned in the event of a conversion error.
source§fn try_from(other: GeneralizedTerm<'a>) -> Result<NamedNode<'a>, StrictRdfError>
fn try_from(other: GeneralizedTerm<'a>) -> Result<NamedNode<'a>, StrictRdfError>
Performs the conversion.
impl<'a> Copy for NamedNode<'a>
impl<'a> Eq for NamedNode<'a>
impl<'a> StructuralPartialEq for NamedNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for NamedNode<'a>
impl<'a> RefUnwindSafe for NamedNode<'a>
impl<'a> Send for NamedNode<'a>
impl<'a> Sync for NamedNode<'a>
impl<'a> Unpin for NamedNode<'a>
impl<'a> UnwindSafe for NamedNode<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)