[−][src]Struct oxigraph::model::NamedNodeRef
A borrowed RDF IRI
The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation:
use oxigraph::model::NamedNodeRef; assert_eq!( "<http://example.com/foo>", NamedNodeRef::new("http://example.com/foo")?.to_string() );
Implementations
impl<'a> NamedNodeRef<'a>
[src]
pub fn new(iri: &'a str) -> Result<Self, IriParseError>
[src]
Builds and validate an RDF IRI
pub const fn new_unchecked(iri: &'a str) -> Self
[src]
Builds an RDF IRI from a string.
It is the caller's responsibility to ensure that iri
is a valid IRI.
parse
is a safe version of this constructor and should be used for untrusted data.
pub const fn as_str(self) -> &'a str
[src]
pub fn into_owned(self) -> NamedNode
[src]
Trait Implementations
impl<'a> Clone for NamedNodeRef<'a>
[src]
fn clone(&self) -> NamedNodeRef<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for NamedNodeRef<'a>
[src]
impl<'a> Debug for NamedNodeRef<'a>
[src]
impl<'_> Display for NamedNodeRef<'_>
[src]
impl<'a> Eq for NamedNodeRef<'a>
[src]
impl<'a> From<&'a NamedNode> for NamedNodeRef<'a>
[src]
impl<'_> From<NamedNodeRef<'_>> for NamedNode
[src]
fn from(node: NamedNodeRef<'_>) -> Self
[src]
impl<'_> From<NamedNodeRef<'_>> for NamedOrBlankNode
[src]
fn from(node: NamedNodeRef<'_>) -> Self
[src]
impl<'_> From<NamedNodeRef<'_>> for Term
[src]
fn from(node: NamedNodeRef<'_>) -> Self
[src]
impl<'_> From<NamedNodeRef<'_>> for GraphName
[src]
fn from(node: NamedNodeRef<'_>) -> Self
[src]
impl<'a> From<NamedNodeRef<'a>> for NamedNode<'a>
[src]
fn from(node: NamedNodeRef<'a>) -> Self
[src]
impl<'a> From<NamedNodeRef<'a>> for NamedOrBlankNodeRef<'a>
[src]
fn from(node: NamedNodeRef<'a>) -> Self
[src]
impl<'a> From<NamedNodeRef<'a>> for TermRef<'a>
[src]
fn from(node: NamedNodeRef<'a>) -> Self
[src]
impl<'a> From<NamedNodeRef<'a>> for GraphNameRef<'a>
[src]
fn from(node: NamedNodeRef<'a>) -> Self
[src]
impl<'a> Hash for NamedNodeRef<'a>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Ord for NamedNodeRef<'a>
[src]
fn cmp(&self, other: &NamedNodeRef<'a>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'_, '_> PartialEq<&'_ str> for NamedNodeRef<'_>
[src]
impl<'_> PartialEq<NamedNode> for NamedNodeRef<'_>
[src]
impl<'_> PartialEq<NamedNodeRef<'_>> for NamedNode
[src]
fn eq(&self, other: &NamedNodeRef<'_>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<NamedNodeRef<'_>> for str
[src]
fn eq(&self, other: &NamedNodeRef<'_>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_> PartialEq<NamedNodeRef<'_>> for &'_ str
[src]
fn eq(&self, other: &NamedNodeRef<'_>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<NamedNodeRef<'a>> for NamedNodeRef<'a>
[src]
fn eq(&self, other: &NamedNodeRef<'a>) -> bool
[src]
fn ne(&self, other: &NamedNodeRef<'a>) -> bool
[src]
impl<'_> PartialEq<str> for NamedNodeRef<'_>
[src]
impl<'a> PartialOrd<NamedNodeRef<'a>> for NamedNodeRef<'a>
[src]
fn partial_cmp(&self, other: &NamedNodeRef<'a>) -> Option<Ordering>
[src]
fn lt(&self, other: &NamedNodeRef<'a>) -> bool
[src]
fn le(&self, other: &NamedNodeRef<'a>) -> bool
[src]
fn gt(&self, other: &NamedNodeRef<'a>) -> bool
[src]
fn ge(&self, other: &NamedNodeRef<'a>) -> bool
[src]
impl<'a> StructuralEq for NamedNodeRef<'a>
[src]
impl<'a> StructuralPartialEq for NamedNodeRef<'a>
[src]
impl<'a> TTerm for NamedNodeRef<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for NamedNodeRef<'a>
impl<'a> Send for NamedNodeRef<'a>
impl<'a> Sync for NamedNodeRef<'a>
impl<'a> Unpin for NamedNodeRef<'a>
impl<'a> UnwindSafe for NamedNodeRef<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CopiableTerm for T where
T: TTerm + ?Sized,
[src]
T: TTerm + ?Sized,
fn copied<U>(&self) -> U where
U: CopyTerm,
[src]
U: CopyTerm,
fn try_copied<U>(&self) -> Result<U, <U as TryCopyTerm>::Error> where
U: TryCopyTerm,
[src]
U: TryCopyTerm,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<U> TermMatcher for U where
U: TTerm + ?Sized,
[src]
U: TTerm + ?Sized,
type Term = U
Type of TTerm
used internally by this matcher.
fn constant(&self) -> Option<&U>
[src]
fn matches<T>(&self, t: &T) -> bool where
T: TTerm + ?Sized,
[src]
T: TTerm + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,