Enum rustc_ast::token::LitKind [−][src]
pub enum LitKind {
Bool,
Byte,
Char,
Integer,
Float,
Str,
StrRaw(u16),
ByteStr,
ByteStrRaw(u16),
Err,
}
Variants
StrRaw(u16)
Tuple Fields of StrRaw
0: u16
ByteStrRaw(u16)
Tuple Fields of ByteStrRaw
0: u16
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LitKind
impl UnwindSafe for LitKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
Bool
: 0 bytesByte
: 0 bytesChar
: 0 bytesInteger
: 0 bytesFloat
: 0 bytesStr
: 0 bytesStrRaw
: 2 bytesByteStr
: 0 bytesByteStrRaw
: 2 bytesErr
: 0 bytes