pub struct RFunction {
pub name: String,
pub formals: Vec<RFormal>,
pub body: Vec<RStmt>,
pub is_generic: bool,
pub s3_methods: Vec<(String, RFunction)>,
pub doc: Option<String>,
}Expand description
An R function definition.
Fields§
§name: StringFunction name (used when emitted as assignment)
formals: Vec<RFormal>Formal parameters
body: Vec<RStmt>Function body statements
is_generic: boolWhether this is a generic function (UseMethod-based)
s3_methods: Vec<(String, RFunction)>S3 method dispatch class, if any (e.g. "numeric")
doc: Option<String>Documentation string (Roxygen2 style)
Implementations§
Trait Implementations§
impl StructuralPartialEq for RFunction
Auto Trait Implementations§
impl Freeze for RFunction
impl RefUnwindSafe for RFunction
impl Send for RFunction
impl Sync for RFunction
impl Unpin for RFunction
impl UnsafeUnpin for RFunction
impl UnwindSafe for RFunction
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