Struct red4ext_rs::types::Method
source · pub struct Method(/* private fields */);
Expand description
An RTTI representation of a method.
Implementations§
source§impl Method
impl Method
pub fn new<C, R>(
full_name: &CStr,
short_name: &CStr,
class: &Class,
handler: FunctionHandler<C, R>,
flags: FunctionFlags,
) -> PoolRef<Self>where
C: ScriptClass,
pub fn as_function(&self) -> &Function
pub fn as_function_mut(&mut self) -> &mut Function
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