#[repr(C)]pub struct Function {
pub name: RString,
pub docs: DocBlock,
pub ret: Option<Retval>,
pub params: Vec<Parameter>,
}
Expand description
Represents an exported function.
Fields§
§name: RString
Name of the function.
docs: DocBlock
Documentation comments for the function.
ret: Option<Retval>
Return value of the function.
params: Vec<Parameter>
Parameters of the function.
Trait Implementations§
Source§impl From<FunctionBuilder<'_>> for Function
impl From<FunctionBuilder<'_>> for Function
Source§fn from(val: FunctionBuilder<'_>) -> Self
fn from(val: FunctionBuilder<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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