pub enum ApiFunctionKind {
Freestanding,
Method(String),
Static(String),
Constructor(String),
}Expand description
Whether a function stands alone or belongs to a resource.
Variants§
Freestanding
A plain interface function.
Method(String)
A method on the named resource (first parameter is self).
Static(String)
A static function on the named resource.
Constructor(String)
The named resource’s constructor.
Trait Implementations§
Source§impl Clone for ApiFunctionKind
impl Clone for ApiFunctionKind
Source§fn clone(&self) -> ApiFunctionKind
fn clone(&self) -> ApiFunctionKind
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 moreSource§impl Debug for ApiFunctionKind
impl Debug for ApiFunctionKind
impl Eq for ApiFunctionKind
Source§impl PartialEq for ApiFunctionKind
impl PartialEq for ApiFunctionKind
impl StructuralPartialEq for ApiFunctionKind
Auto Trait Implementations§
impl Freeze for ApiFunctionKind
impl RefUnwindSafe for ApiFunctionKind
impl Send for ApiFunctionKind
impl Sync for ApiFunctionKind
impl Unpin for ApiFunctionKind
impl UnsafeUnpin for ApiFunctionKind
impl UnwindSafe for ApiFunctionKind
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