pub struct IriS { /* private fields */ }
Implementations§
Source§impl IriS
impl IriS
pub fn rdf_type() -> IriS
pub fn new_unchecked(str: &str) -> IriS
pub fn as_str(&self) -> &str
Sourcepub fn from_named_node(iri: &NamedNode) -> IriS
pub fn from_named_node(iri: &NamedNode) -> IriS
Convert a NamedNode
to an IriS
Sourcepub fn as_named_node(&self) -> &NamedNode
pub fn as_named_node(&self) -> &NamedNode
Convert an IriS
to a NamedNode
pub fn join(&self, str: &str) -> Result<Self, IriSError>
Sourcepub fn extend(&self, str: &str) -> Result<Self, IriSError>
pub fn extend(&self, str: &str) -> Result<Self, IriSError>
Extends the current IRI with a new string
This function checks for possible errors returning a Result
Sourcepub fn extend_unchecked(&self, str: &str) -> Self
pub fn extend_unchecked(&self, str: &str) -> Self
Extend an IRI with a new string without checking for possible syntactic errors
Sourcepub fn resolve(&self, other: IriS) -> Result<Self, IriSError>
pub fn resolve(&self, other: IriS) -> Result<Self, IriSError>
Resolve the IRI other
with this IRI
Sourcepub fn dereference(&self, base: &Option<IriS>) -> Result<String, IriSError>
pub fn dereference(&self, base: &Option<IriS>) -> Result<String, IriSError>
Dereference the IRI and get the content available from it
It handles also IRIs with the file
scheme as local file names. For example: file:///person.txt
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IriS
impl<'de> Deserialize<'de> for IriS
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IriS
impl StructuralPartialEq for IriS
Auto Trait Implementations§
impl Freeze for IriS
impl RefUnwindSafe for IriS
impl Send for IriS
impl Sync for IriS
impl Unpin for IriS
impl UnwindSafe for IriS
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.