Struct red4ext_rs::MethodMetadata
source · pub struct MethodMetadata<Ctx> { /* private fields */ }
Expand description
A representation of a class method, including its name, a function handler, and its type.
Implementations§
source§impl<Ctx: ScriptClass> MethodMetadata<Ctx>
impl<Ctx: ScriptClass> MethodMetadata<Ctx>
sourcepub const fn with_is_event(self) -> Self
pub const fn with_is_event(self) -> Self
Configures this method as an event handler (called cb
in REDscript).
sourcepub const fn with_is_final(self) -> Self
pub const fn with_is_final(self) -> Self
Configures this method as final (cannot be overridden).
Trait Implementations§
Auto Trait Implementations§
impl<Ctx> Freeze for MethodMetadata<Ctx>
impl<Ctx> RefUnwindSafe for MethodMetadata<Ctx>
impl<Ctx> Send for MethodMetadata<Ctx>
impl<Ctx> Sync for MethodMetadata<Ctx>
impl<Ctx> Unpin for MethodMetadata<Ctx>
impl<Ctx> UnwindSafe for MethodMetadata<Ctx>
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