pub struct FunctionShape {
pub type_params: Vec<TypeParamInfo>,
pub params: Vec<ParamInfo>,
pub this_type: Option<TypeId>,
pub return_type: TypeId,
pub type_predicate: Option<TypePredicate>,
pub is_constructor: bool,
pub is_method: bool,
}Expand description
Function shape for function types
Fields§
§type_params: Vec<TypeParamInfo>§params: Vec<ParamInfo>§this_type: Option<TypeId>§return_type: TypeId§type_predicate: Option<TypePredicate>§is_constructor: bool§is_method: boolWhether this function is a method (bivariant parameters) vs a standalone function (contravariant when strictFunctionTypes)
Implementations§
Trait Implementations§
Source§impl Clone for FunctionShape
impl Clone for FunctionShape
Source§fn clone(&self) -> FunctionShape
fn clone(&self) -> FunctionShape
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 FunctionShape
impl Debug for FunctionShape
Source§impl Hash for FunctionShape
impl Hash for FunctionShape
Source§impl PartialEq for FunctionShape
impl PartialEq for FunctionShape
impl Eq for FunctionShape
impl StructuralPartialEq for FunctionShape
Auto Trait Implementations§
impl Freeze for FunctionShape
impl RefUnwindSafe for FunctionShape
impl Send for FunctionShape
impl Sync for FunctionShape
impl Unpin for FunctionShape
impl UnsafeUnpin for FunctionShape
impl UnwindSafe for FunctionShape
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.