pub enum Literal {
Collection(CollectionTypeLiteral),
UserDefined(UserDefinedTypeLiteral),
Tuple(TupleLiteral),
}
Variants§
Trait Implementations§
Source§impl<'a> CustomToTokens<'a> for Literal
impl<'a> CustomToTokens<'a> for Literal
Source§impl From<CollectionTypeLiteral> for Literal
impl From<CollectionTypeLiteral> for Literal
Source§fn from(original: CollectionTypeLiteral) -> Literal
fn from(original: CollectionTypeLiteral) -> Literal
Converts to this type from the input type.
Source§impl From<TupleLiteral> for Literal
impl From<TupleLiteral> for Literal
Source§fn from(original: TupleLiteral) -> Literal
fn from(original: TupleLiteral) -> Literal
Converts to this type from the input type.
Source§impl From<UserDefinedTypeLiteral> for Literal
impl From<UserDefinedTypeLiteral> for Literal
Source§fn from(original: UserDefinedTypeLiteral) -> Literal
fn from(original: UserDefinedTypeLiteral) -> Literal
Converts to this type from the input type.
Source§impl Ord for Literal
impl Ord for Literal
Source§impl PartialOrd for Literal
impl PartialOrd for Literal
Source§impl ToTokens for Literal
impl ToTokens for Literal
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl TryFrom<Literal> for CollectionTypeLiteral
impl TryFrom<Literal> for CollectionTypeLiteral
Source§impl TryFrom<Literal> for TupleLiteral
impl TryFrom<Literal> for TupleLiteral
Source§impl TryFrom<Literal> for UserDefinedTypeLiteral
impl TryFrom<Literal> for UserDefinedTypeLiteral
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
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