Enum rtlola_parser::ast::LitKind
source · [−]Expand description
The Ast representation of literals
Variants
Str(String)
A string literal ("foo")
RawStr(String)
A raw string literal (r#" x " a \ff "#)
Numeric(String, Option<String>)
A numeric value with optional postfix part (42, 1.3, 1Hz, 100sec)
Stores as a string to have lossless representation
Bool(bool)
A boolean literal (true)
Trait Implementations
impl Eq for LitKind
impl StructuralEq 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more