pub enum Literal<M> {
Rdf(RdfLiteral<M>),
Numeric(NumericLiteral),
Boolean(bool),
}
Expand description
Literal value.
Variants§
Rdf(RdfLiteral<M>)
RDF literal.
Numeric(NumericLiteral)
Numeric literal.
Boolean(bool)
Boolean literal.
Trait Implementations§
Source§impl<M> Parse<M> for Literal<M>
impl<M> Parse<M> for Literal<M>
fn parse_from<L, F>( parser: &mut Parser<L, F>, Meta: Meta<Token, Span>, ) -> Result<Meta<Self, M>, MetaError<L::Error, M>>
fn parse_with<L, F>( parser: &mut Parser<L, F>, ) -> Result<Meta<Self, M>, MetaError<L::Error, M>>
fn parse_empty<L>(meta: M) -> Result<Meta<Self, M>, MetaError<L::Error, M>>where
L: Tokens,
fn parse<C, F, E>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error<E>, M>>
fn parse_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
fn parse_utf8<C, F, E>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error<E>, M>>
fn parse_utf8_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
fn parse_utf16<C, F, E>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error<E>, M>>
fn parse_utf16_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
fn parse_str<F>( string: &str, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
Auto Trait Implementations§
impl<M> Freeze for Literal<M>where
M: Freeze,
impl<M> RefUnwindSafe for Literal<M>where
M: RefUnwindSafe,
impl<M> Send for Literal<M>where
M: Send,
impl<M> Sync for Literal<M>where
M: Sync,
impl<M> Unpin for Literal<M>where
M: Unpin,
impl<M> UnwindSafe for Literal<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