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