pub enum CallableKind {
Function {
params: Vec<ParamInfo>,
return_type: TypeId,
type_params: Vec<TypeParamInfo>,
},
Constructor {
params: Vec<ParamInfo>,
return_type: TypeId,
type_params: Vec<TypeParamInfo>,
},
Overloaded {
call_signatures: Vec<CallSignature>,
construct_signatures: Vec<CallSignature>,
},
NotCallable,
}Expand description
Classification of how a type can be called.
Variants§
Function
Regular function with a single call signature
Constructor
Constructor (new-able)
Overloaded
Overloaded function with multiple call signatures
NotCallable
Not callable
Trait Implementations§
Source§impl Clone for CallableKind
impl Clone for CallableKind
Source§fn clone(&self) -> CallableKind
fn clone(&self) -> CallableKind
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 moreSource§impl Debug for CallableKind
impl Debug for CallableKind
Source§impl PartialEq for CallableKind
impl PartialEq for CallableKind
impl Eq for CallableKind
impl StructuralPartialEq for CallableKind
Auto Trait Implementations§
impl Freeze for CallableKind
impl RefUnwindSafe for CallableKind
impl Send for CallableKind
impl Sync for CallableKind
impl Unpin for CallableKind
impl UnsafeUnpin for CallableKind
impl UnwindSafe for CallableKind
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.