Struct sophia_api::term::RawValue
source · [−]Expand description
A raw value is a string possibly split into two parts.
The second part of the raw value is intended for some implementations of
IRIs, storing both a “namespace” and a “suffix”. For other kinds of term,
the second part must be None
.
Tuple Fields
0: &'a str
1: Option<&'a str>
Implementations
If this represents an IRI, check if its an absolute one.
Note: This function merely checks that the resulting string starts with an IRI scheme. It does not further check the validity of the full IRI, which is supposed to be done by the TTerm implementation.
Iterator over all bytes of the raw value.
Returns the length of the string, including the length of the second if present.
pub fn slice<R>(&self, range: R) -> MownStr<'a> where
R: RangeBounds<usize> + SliceIndex<str, Output = str>,
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RawValue<'a>
impl<'a> UnwindSafe for RawValue<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more