pub enum TLit {
Int(i64),
Float(f64),
Bool(bool),
Null,
Char(char),
}Expand description
A literal a template writes (strings are written with
TemplateBuilder::str).
§Examples
use lower_lang::TLit;
assert_ne!(TLit::Int(1), TLit::Bool(true));Variants§
Int(i64)
An integer.
Float(f64)
A float.
Bool(bool)
true / false.
Null
null.
Char(char)
A character.
Trait Implementations§
impl Copy for TLit
impl StructuralPartialEq for TLit
Auto Trait Implementations§
impl Freeze for TLit
impl RefUnwindSafe for TLit
impl Send for TLit
impl Sync for TLit
impl Unpin for TLit
impl UnsafeUnpin for TLit
impl UnwindSafe for TLit
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