pub struct SH { /* private fields */ }
Methods from Deref<Target = IriS>§
pub fn as_str(&self) -> &str
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<IriS, IriSError>
Sourcepub fn extend(&self, str: &str) -> Result<IriS, IriSError>
pub fn extend(&self, str: &str) -> Result<IriS, 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) -> IriS
pub fn extend_unchecked(&self, str: &str) -> IriS
Extend an IRI with a new string without checking for possible syntactic errors
Sourcepub fn resolve(&self, other: IriS) -> Result<IriS, IriSError>
pub fn resolve(&self, other: IriS) -> Result<IriS, 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§
Auto Trait Implementations§
impl Freeze for SH
impl RefUnwindSafe for SH
impl Send for SH
impl Sync for SH
impl Unpin for SH
impl UnwindSafe for SH
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more