pub struct CallSignature {
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_method: bool,
}Expand description
Call signature for overloaded functions Represents a single call signature in an overloaded type
Fields§
§type_params: Vec<TypeParamInfo>§params: Vec<ParamInfo>§this_type: Option<TypeId>§return_type: TypeId§type_predicate: Option<TypePredicate>§is_method: boolWhether this call signature is from a method (uses bivariant parameter checking). Methods in TypeScript are intentionally bivariant for compatibility reasons.
Implementations§
Trait Implementations§
Source§impl Clone for CallSignature
impl Clone for CallSignature
Source§fn clone(&self) -> CallSignature
fn clone(&self) -> CallSignature
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 CallSignature
impl Debug for CallSignature
Source§impl Hash for CallSignature
impl Hash for CallSignature
Source§impl PartialEq for CallSignature
impl PartialEq for CallSignature
impl Eq for CallSignature
impl StructuralPartialEq for CallSignature
Auto Trait Implementations§
impl Freeze for CallSignature
impl RefUnwindSafe for CallSignature
impl Send for CallSignature
impl Sync for CallSignature
impl Unpin for CallSignature
impl UnsafeUnpin for CallSignature
impl UnwindSafe for CallSignature
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.