pub enum LitKind {
Bool,
Byte,
Char,
Integer,
Float,
Str,
StrRaw(u8),
ByteStr,
ByteStrRaw(u8),
Err,
}
Variants§
Implementations§
Trait Implementations§
source§impl<__CTX> HashStable<__CTX> for LitKindwhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for LitKindwhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl Copy for LitKind
impl StructuralPartialEq for LitKind
Auto Trait Implementations§
impl RefUnwindSafe for LitKind
impl Send for LitKind
impl Sync for LitKind
impl Unpin for LitKind
impl UnwindSafe for LitKind
Blanket Implementations§
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: 2 bytes
Size for each variant:
Bool
: 0 bytesByte
: 0 bytesChar
: 0 bytesInteger
: 0 bytesFloat
: 0 bytesStr
: 0 bytesStrRaw
: 1 byteByteStr
: 0 bytesByteStrRaw
: 1 byteErr
: 0 bytes