pub(crate) enum Literal {
Compiler(Literal),
Fallback(Literal),
}
Variants§
Implementations§
source§impl Literal
impl Literal
pub(crate) fn from_str_checked(repr: &str) -> Result<Self, LexError>
pub(crate) unsafe fn from_str_unchecked(repr: &str) -> Self
pub(crate) fn u8_suffixed(n: u8) -> Literal
pub(crate) fn u16_suffixed(n: u16) -> Literal
pub(crate) fn u32_suffixed(n: u32) -> Literal
pub(crate) fn u64_suffixed(n: u64) -> Literal
pub(crate) fn u128_suffixed(n: u128) -> Literal
pub(crate) fn usize_suffixed(n: usize) -> Literal
pub(crate) fn i8_suffixed(n: i8) -> Literal
pub(crate) fn i16_suffixed(n: i16) -> Literal
pub(crate) fn i32_suffixed(n: i32) -> Literal
pub(crate) fn i64_suffixed(n: i64) -> Literal
pub(crate) fn i128_suffixed(n: i128) -> Literal
pub(crate) fn isize_suffixed(n: isize) -> Literal
pub(crate) fn f32_suffixed(n: f32) -> Literal
pub(crate) fn f64_suffixed(n: f64) -> Literal
pub(crate) fn u8_unsuffixed(n: u8) -> Literal
pub(crate) fn u16_unsuffixed(n: u16) -> Literal
pub(crate) fn u32_unsuffixed(n: u32) -> Literal
pub(crate) fn u64_unsuffixed(n: u64) -> Literal
pub(crate) fn u128_unsuffixed(n: u128) -> Literal
pub(crate) fn usize_unsuffixed(n: usize) -> Literal
pub(crate) fn i8_unsuffixed(n: i8) -> Literal
pub(crate) fn i16_unsuffixed(n: i16) -> Literal
pub(crate) fn i32_unsuffixed(n: i32) -> Literal
pub(crate) fn i64_unsuffixed(n: i64) -> Literal
pub(crate) fn i128_unsuffixed(n: i128) -> Literal
pub(crate) fn isize_unsuffixed(n: isize) -> Literal
pub(crate) fn f32_unsuffixed(f: f32) -> Literal
pub(crate) fn f64_unsuffixed(f: f64) -> Literal
pub(crate) fn string(string: &str) -> Literal
pub(crate) fn character(ch: char) -> Literal
pub(crate) fn byte_character(byte: u8) -> Literal
pub(crate) fn byte_string(bytes: &[u8]) -> Literal
pub(crate) fn c_string(string: &CStr) -> Literal
pub(crate) fn span(&self) -> Span
pub(crate) fn set_span(&mut self, span: Span)
pub(crate) fn subspan<R: RangeBounds<usize>>(&self, range: R) -> Option<Span>
fn unwrap_nightly(self) -> Literal
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl !Send for Literal
impl !Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)