#[methods]Expand description
Export methods from an impl block for Wasvy.
All &self / &mut self methods are registered for dynamic invoke, and
argument names are captured for WIT generation. Use #[wasvy::skip] to
exclude a method from export.
§Example
ⓘ
#[wasvy::methods]
impl Health {
pub fn heal(&mut self, amount: f32) {
self.current = (self.current + amount).min(self.max);
}
}