pub enum LitKind {
Bool,
Byte,
Char,
Integer,
Float,
Str,
StrRaw(u8),
ByteStr,
ByteStrRaw(u8),
Err,
}
Variants
Bool
Byte
Char
Integer
Float
Str
StrRaw(u8)
ByteStr
ByteStrRaw(u8)
Err
Implementations
Trait Implementations
sourceimpl<__CTX> HashStable<__CTX> for LitKind where
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for LitKind where
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
sourceimpl PartialEq<LitKind> for LitKind
impl PartialEq<LitKind> for LitKind
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 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