#[repr(C)]pub struct Method {
pub name: Str,
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: Str
§docs: DocBlock
§ty: MethodType
§params: Vec<Parameter>
§retval: Option<Retval>
§_static: bool
§visibility: Visibility
Trait Implementations§
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