#[repr(C)]pub struct Method {
pub name: RString,
pub docs: DocBlock,
pub ty: MethodType,
pub params: Vec<Parameter>,
pub retval: Option<Retval>,
pub static: bool,
pub visibility: Visibility,
}Expand description
Represents a method attached to an exported class.
Fields§
§name: RStringName of the method.
docs: DocBlockDocumentation comments for the method.
ty: MethodTypeType of the method.
params: Vec<Parameter>Parameters of the method.
retval: Option<Retval>Return value of the method.
static: boolWhether the method is static.
visibility: VisibilityVisibility of the method.
Trait Implementations§
Source§impl From<(FunctionBuilder<'_>, MethodFlags)> for Method
impl From<(FunctionBuilder<'_>, MethodFlags)> for Method
Source§fn from(val: (FunctionBuilder<'_>, MethodFlags)) -> Self
fn from(val: (FunctionBuilder<'_>, MethodFlags)) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl !Send for Method
impl !Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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