Enum amplify_syn::LiteralClass [−][src]
pub enum LiteralClass {
Str,
ByteStr,
Byte,
Char,
Int,
Float,
Bool,
Verbatim,
}
Expand description
Constrains for literal value type
Variants
Literal must be a string
Literal must be a byte string
Literal must be a byte (in form of b'f'
)
Literal must be a character
Literal must be an integer
Literal must be a float
Literal must be a boolean
Literal must be a verbatim form
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for LiteralClass
impl Send for LiteralClass
impl Sync for LiteralClass
impl Unpin for LiteralClass
impl UnwindSafe for LiteralClass
Blanket Implementations
Mutably borrows from an owned value. Read more