pub struct RubyClassDef {
pub name: String,
pub superclass: Option<String>,
pub includes: Vec<String>,
pub extends: Vec<String>,
pub prepends: Vec<String>,
pub methods: Vec<RubyMethodDef>,
pub attrs: Vec<(String, bool, bool)>,
pub constants: Vec<(String, String)>,
}Expand description
Ruby class definition
Fields§
§name: String§superclass: Option<String>§includes: Vec<String>§extends: Vec<String>§prepends: Vec<String>§methods: Vec<RubyMethodDef>§attrs: Vec<(String, bool, bool)>§constants: Vec<(String, String)>Trait Implementations§
Source§impl Clone for RubyClassDef
impl Clone for RubyClassDef
Source§fn clone(&self) -> RubyClassDef
fn clone(&self) -> RubyClassDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RubyClassDef
impl Debug for RubyClassDef
Auto Trait Implementations§
impl Freeze for RubyClassDef
impl RefUnwindSafe for RubyClassDef
impl Send for RubyClassDef
impl Sync for RubyClassDef
impl Unpin for RubyClassDef
impl UnsafeUnpin for RubyClassDef
impl UnwindSafe for RubyClassDef
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