Enum macros_core::LiteralKind
source · pub enum LiteralKind {
Byte,
Char,
Integer,
Float,
Str,
StrRaw(u8),
ByteStr,
ByteStrRaw(u8),
}
Expand description
The kind of literal.
Variants§
Trait Implementations§
source§impl Clone for LiteralKind
impl Clone for LiteralKind
source§fn clone(&self) -> LiteralKind
fn clone(&self) -> LiteralKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LiteralKind
impl Debug for LiteralKind
source§impl PartialEq<LiteralKind> for LiteralKind
impl PartialEq<LiteralKind> for LiteralKind
source§fn eq(&self, other: &LiteralKind) -> bool
fn eq(&self, other: &LiteralKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.