pub struct RubyClassRegistry {
pub classes: Vec<RubyClassDef>,
pub modules: Vec<RubyModuleDef>,
}Expand description
Ruby class registry
Fields§
§classes: Vec<RubyClassDef>§modules: Vec<RubyModuleDef>Implementations§
Source§impl RubyClassRegistry
impl RubyClassRegistry
pub fn new() -> Self
pub fn add_class(&mut self, c: RubyClassDef)
pub fn add_module(&mut self, m: RubyModuleDef)
pub fn total_items(&self) -> usize
pub fn emit_all(&self) -> String
Trait Implementations§
Source§impl Debug for RubyClassRegistry
impl Debug for RubyClassRegistry
Source§impl Default for RubyClassRegistry
impl Default for RubyClassRegistry
Source§fn default() -> RubyClassRegistry
fn default() -> RubyClassRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RubyClassRegistry
impl RefUnwindSafe for RubyClassRegistry
impl Send for RubyClassRegistry
impl Sync for RubyClassRegistry
impl Unpin for RubyClassRegistry
impl UnsafeUnpin for RubyClassRegistry
impl UnwindSafe for RubyClassRegistry
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