pub struct WitFunc {
pub name: String,
pub params: Vec<WitParam>,
pub result: Option<WitTypeKind>,
}Expand description
WIT function
Fields§
§name: StringThe name of the function.
params: Vec<WitParam>The parameters of the function.
result: Option<WitTypeKind>The optional return type of the function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WitFunc
impl RefUnwindSafe for WitFunc
impl Send for WitFunc
impl Sync for WitFunc
impl Unpin for WitFunc
impl UnsafeUnpin for WitFunc
impl UnwindSafe for WitFunc
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