Enum FunctionKind
pub enum FunctionKind {
Freestanding,
AsyncFreestanding,
Method(Id<TypeDef>),
AsyncMethod(Id<TypeDef>),
Static(Id<TypeDef>),
AsyncStatic(Id<TypeDef>),
Constructor(Id<TypeDef>),
}Variants§
Freestanding
A freestanding function.
interface foo {
the-func: func();
}AsyncFreestanding
An async freestanding function.
interface foo {
the-func: async func();
}Method(Id<TypeDef>)
A resource method where the first parameter is implicitly
borrow<T>.
interface foo {
resource r {
the-func: func();
}
}AsyncMethod(Id<TypeDef>)
An async resource method where the first parameter is implicitly
borrow<T>.
interface foo {
resource r {
the-func: async func();
}
}Static(Id<TypeDef>)
A static resource method.
interface foo {
resource r {
the-func: static func();
}
}AsyncStatic(Id<TypeDef>)
An async static resource method.
interface foo {
resource r {
the-func: static async func();
}
}Constructor(Id<TypeDef>)
A resource constructor where the return value is implicitly own<T>.
interface foo {
resource r {
constructor();
}
}Implementations§
§impl FunctionKind
impl FunctionKind
Trait Implementations§
§impl Clone for FunctionKind
impl Clone for FunctionKind
§fn clone(&self) -> FunctionKind
fn clone(&self) -> FunctionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FunctionKind
impl Debug for FunctionKind
impl Eq for FunctionKind
§impl PartialEq for FunctionKind
impl PartialEq for FunctionKind
§impl Serialize for FunctionKind
impl Serialize for FunctionKind
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more