pub struct WitMethod {
pub name: String,
pub params: Vec<(String, String)>,
pub ret: Option<String>,
}Expand description
One method projected to WIT (already-mapped strings).
Fields§
§name: Stringkebab-case export name.
params: Vec<(String, String)>(param-name, wit-type) pairs, in order.
ret: Option<String>WIT return type, or None for no return.
Auto Trait Implementations§
impl Freeze for WitMethod
impl RefUnwindSafe for WitMethod
impl Send for WitMethod
impl Sync for WitMethod
impl Unpin for WitMethod
impl UnsafeUnpin for WitMethod
impl UnwindSafe for WitMethod
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