pub enum Directive<M> {
Prefix((String, M), (IriRefBuf, M)),
Base((IriRefBuf, M)),
SparqlPrefix((String, M), (IriRefBuf, M)),
SparqlBase((IriRefBuf, M)),
}
Expand description
A directive.
Variants§
Prefix((String, M), (IriRefBuf, M))
@prefix
directive.
Base((IriRefBuf, M))
@base
directive.
SparqlPrefix((String, M), (IriRefBuf, M))
SPARQL PREFIX
directive.
SparqlBase((IriRefBuf, M))
SPARQL BASE
directive.
Trait Implementations§
Source§impl<M> Parse<M> for Directive<M>
impl<M> Parse<M> for Directive<M>
fn parse_from<L, F>( parser: &mut Parser<L, F>, (token, span): (Token, Span), ) -> Result<(Self, M), ParseError<L::Error, M>>
fn parse_with<L, F>( parser: &mut Parser<L, F>, ) -> Result<(Self, M), ParseError<L::Error, M>>
fn parse_empty<L>(meta: M) -> Result<(Self, M), ParseError<L::Error, M>>where
L: Tokens,
fn parse<C, F, E>( chars: C, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error<E>, M>>
fn parse_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error, M>>
fn parse_utf8<C, F, E>( chars: C, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error<E>, M>>
fn parse_utf8_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error, M>>
fn parse_utf16<C, F, E>( chars: C, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error<E>, M>>
fn parse_utf16_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error, M>>
fn parse_str<F>( string: &str, metadata_builder: F, ) -> Result<(Self, M), ParseError<Error, M>>
Auto Trait Implementations§
impl<M> Freeze for Directive<M>where
M: Freeze,
impl<M> RefUnwindSafe for Directive<M>where
M: RefUnwindSafe,
impl<M> Send for Directive<M>where
M: Send,
impl<M> Sync for Directive<M>where
M: Sync,
impl<M> Unpin for Directive<M>where
M: Unpin,
impl<M> UnwindSafe for Directive<M>where
M: UnwindSafe,
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