pub enum FunctionKind {
    Freestanding,
    AsyncFreestanding,
    Method(TypeId),
    AsyncMethod(TypeId),
    Static(TypeId),
    AsyncStatic(TypeId),
    Constructor(TypeId),
}Variants§
Freestanding
A freestanding function.
interface foo {
    the-func: func();
}AsyncFreestanding
An async freestanding function.
interface foo {
    the-func: async func();
}Method(TypeId)
A resource method where the first parameter is implicitly
borrow<T>.
interface foo {
    resource r {
        the-func: func();
    }
}AsyncMethod(TypeId)
An async resource method where the first parameter is implicitly
borrow<T>.
interface foo {
    resource r {
        the-func: async func();
    }
}Static(TypeId)
A static resource method.
interface foo {
    resource r {
        the-func: static func();
    }
}AsyncStatic(TypeId)
An async static resource method.
interface foo {
    resource r {
        the-func: static async func();
    }
}Constructor(TypeId)
A resource constructor where the return value is implicitly own<T>.
interface foo {
    resource r {
        constructor();
    }
}Implementations§
Trait Implementations§
Source§impl Clone for FunctionKind
 
impl Clone for FunctionKind
Source§fn clone(&self) -> FunctionKind
 
fn clone(&self) -> FunctionKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for FunctionKind
 
impl Debug for FunctionKind
Source§impl PartialEq for FunctionKind
 
impl PartialEq for FunctionKind
Source§impl Serialize for FunctionKind
 
impl Serialize for FunctionKind
impl Eq for FunctionKind
impl StructuralPartialEq for FunctionKind
Auto Trait Implementations§
impl Freeze for FunctionKind
impl RefUnwindSafe for FunctionKind
impl Send for FunctionKind
impl Sync for FunctionKind
impl Unpin for FunctionKind
impl UnwindSafe for FunctionKind
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.