Struct harriet::PrefixDirective
source · [−]pub struct PrefixDirective<'a> {
pub leading_whitespace: Option<Whitespace<'a>>,
pub prefix: Option<Cow<'a, str>>,
pub iri: IRIReference<'a>,
}Expand description
A directive specifying the base for relative prefixed IRIs. E.g. @prefix owl: <http://www.w3.org/2002/07/owl#> .
Parsing reference: https://www.w3.org/TR/turtle/#grammar-production-prefixID
Fields
leading_whitespace: Option<Whitespace<'a>>prefix: Option<Cow<'a, str>>iri: IRIReference<'a>Trait Implementations
sourceimpl<'a> Clone for PrefixDirective<'a>
impl<'a> Clone for PrefixDirective<'a>
sourcefn clone(&self) -> PrefixDirective<'a>
fn clone(&self) -> PrefixDirective<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'a> Debug for PrefixDirective<'a>
impl<'a> Debug for PrefixDirective<'a>
sourceimpl<'a> PartialEq<PrefixDirective<'a>> for PrefixDirective<'a>
impl<'a> PartialEq<PrefixDirective<'a>> for PrefixDirective<'a>
sourcefn eq(&self, other: &PrefixDirective<'a>) -> bool
fn eq(&self, other: &PrefixDirective<'a>) -> bool
impl<'a> Eq for PrefixDirective<'a>
impl<'a> StructuralEq for PrefixDirective<'a>
impl<'a> StructuralPartialEq for PrefixDirective<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PrefixDirective<'a>
impl<'a> Send for PrefixDirective<'a>
impl<'a> Sync for PrefixDirective<'a>
impl<'a> Unpin for PrefixDirective<'a>
impl<'a> UnwindSafe for PrefixDirective<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more