pub enum GoLit {
Int(i64),
Float(f64),
Bool(bool),
Str(String),
Nil,
}Expand description
Go literal values.
Variants§
Int(i64)
Integer literal: 0, 42, -7
Float(f64)
Float literal: 3.14
Bool(bool)
Boolean literal: true or false
Str(String)
String literal: "hello"
Nil
nil
Trait Implementations§
impl StructuralPartialEq for GoLit
Auto Trait Implementations§
impl Freeze for GoLit
impl RefUnwindSafe for GoLit
impl Send for GoLit
impl Sync for GoLit
impl Unpin for GoLit
impl UnsafeUnpin for GoLit
impl UnwindSafe for GoLit
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