pub struct RubyMethodDef {
pub name: String,
pub params: Vec<(String, Option<RubyTypeExt>)>,
pub return_type: Option<RubyTypeExt>,
pub body: String,
pub visibility: RubyVisibility,
pub is_class_method: bool,
pub is_abstract: bool,
}Expand description
Ruby method definition
Fields§
§name: String§params: Vec<(String, Option<RubyTypeExt>)>§return_type: Option<RubyTypeExt>§body: String§visibility: RubyVisibility§is_class_method: bool§is_abstract: boolTrait Implementations§
Source§impl Clone for RubyMethodDef
impl Clone for RubyMethodDef
Source§fn clone(&self) -> RubyMethodDef
fn clone(&self) -> RubyMethodDef
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 RubyMethodDef
impl Debug for RubyMethodDef
Auto Trait Implementations§
impl Freeze for RubyMethodDef
impl RefUnwindSafe for RubyMethodDef
impl Send for RubyMethodDef
impl Sync for RubyMethodDef
impl Unpin for RubyMethodDef
impl UnsafeUnpin for RubyMethodDef
impl UnwindSafe for RubyMethodDef
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