pub enum SavvyFnType {
BareFunction,
Method {
ty: Type,
reference: bool,
mutability: bool,
},
AssociatedFunction(Type),
InitFunction,
}Variants§
BareFunction
A function that doesn’t belong to a struct
Method
A function that belongs to a struct, and the first argument is self.
Contains the type name of the sturct.
AssociatedFunction(Type)
A function that belongs to a struct, but the first argument is not
self. Contains the type name of the sturct.
InitFunction
A function to be executed in the package’s initialization routine.
Trait Implementations§
Source§impl Clone for SavvyFnType
impl Clone for SavvyFnType
Source§fn clone(&self) -> SavvyFnType
fn clone(&self) -> SavvyFnType
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SavvyFnType
impl RefUnwindSafe for SavvyFnType
impl !Send for SavvyFnType
impl !Sync for SavvyFnType
impl Unpin for SavvyFnType
impl UnwindSafe for SavvyFnType
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