pub enum RubyType {
Integer,
Float,
String,
Bool,
Nil,
Array(Box<RubyType>),
Hash(Box<RubyType>, Box<RubyType>),
Symbol,
Object(String),
Proc,
}Expand description
Ruby type representation for type-directed code generation.
Variants§
Integer
Integer — arbitrary-precision integer (maps to Lean Nat)
Float
Float — 64-bit IEEE 754 float
String
String
Bool
TrueClass / FalseClass — boolean
Nil
NilClass
Array(Box<RubyType>)
Array — homogeneous list
Hash(Box<RubyType>, Box<RubyType>)
Hash — key-value map
Symbol
Symbol
Object(String)
Arbitrary named class / module
Proc
Proc — first-class callable
Trait Implementations§
impl Eq for RubyType
impl StructuralPartialEq for RubyType
Auto Trait Implementations§
impl Freeze for RubyType
impl RefUnwindSafe for RubyType
impl Send for RubyType
impl Sync for RubyType
impl Unpin for RubyType
impl UnsafeUnpin for RubyType
impl UnwindSafe for RubyType
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