pub struct InferredSig {
pub params: Vec<Ty>,
pub return_ty: Ty,
}Expand description
A def’s inferred signature: positional param types (declaration order) plus a return type. The generalized, per-def result of a body’s fixpoint solve — what a caller reads (never the caller reading the callee’s body directly; that’s the firewall).
Fields§
§params: Vec<Ty>§return_ty: TyTrait Implementations§
Source§impl Clone for InferredSig
impl Clone for InferredSig
Source§fn clone(&self) -> InferredSig
fn clone(&self) -> InferredSig
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 InferredSig
impl Debug for InferredSig
Source§impl Default for InferredSig
impl Default for InferredSig
Source§fn default() -> InferredSig
fn default() -> InferredSig
Returns the “default value” for a type. Read more
impl Eq for InferredSig
Source§impl PartialEq for InferredSig
impl PartialEq for InferredSig
impl StructuralPartialEq for InferredSig
Auto Trait Implementations§
impl Freeze for InferredSig
impl RefUnwindSafe for InferredSig
impl Send for InferredSig
impl Sync for InferredSig
impl Unpin for InferredSig
impl UnsafeUnpin for InferredSig
impl UnwindSafe for InferredSig
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§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.