Enum LitKind
pub enum LitKind
Variants
-
Byte -
Char -
Integer -
Float -
Str -
StrRaw(u8) -
ByteStr -
ByteStrRaw(u8) -
CStr -
CStrRaw(u8) -
ErrWithGuar
Trait Implementations
impl Clone for LitKind
fn clone(&self) -> LitKind
impl Copy for LitKind
impl Debug for LitKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for LitKind
fn assert_fields_are_eq(&self)
impl Mark for LitKind
type Unmarked = LitKind;fn mark(unmarked: Self::Unmarked) -> Selffn unmark(self) -> Self::Unmarked
impl PartialEq for LitKind
fn eq(&self, other: &LitKind) -> bool
impl StructuralPartialEq for LitKind
impl TrivialClone for LitKind
impl<'a, S> Decode<'a, '_, S> for LitKind
fn decode(r: &mut &'a [u8], s: &mut S) -> Self
impl<S> Encode<S> for LitKind
fn encode(self, w: &mut Buffer, s: &mut S)
Auto Trait Implementations
impl Freeze for LitKind
impl RefUnwindSafe for LitKind
impl Send for LitKind
impl Sync for LitKind
impl Unpin for LitKind
impl UnsafeUnpin for LitKind
impl UnwindSafe for LitKind
Blanket Implementations
impl<T> Any for LitKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LitKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LitKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for LitKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for LitKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for LitKind
where
T: Copy + Debug,
impl<T> SizeHint for LitKind
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for LitKind
impl<T> ToOwned for LitKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for LitKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for LitKind
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for LitKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>