Struct stc_ts_file_analyzer::analyzer::generic::inference::InferenceInfo
source · [−]pub(super) struct InferenceInfo {
pub type_param: Id,
pub candidates: Vec<Type>,
pub contra_candidates: Vec<Type>,
pub inferred_type: Type,
pub priority: InferencePriority,
pub top_level: bool,
pub is_fixed: bool,
pub implied_arity: Option<isize>,
pub rest_index: Option<usize>,
}
Fields
type_param: Id
candidates: Vec<Type>
Candidates in covariant positions (or undefined)
contra_candidates: Vec<Type>
Candidates in contravariant positions (or undefined)
inferred_type: Type
Cache for resolved inferred type
TODO(kdy1): Make this Option<Type>
, to match tsc
.
priority: InferencePriority
Priority of current inference set
top_level: bool
True if all inferences are to top level occurrences
is_fixed: bool
True if inferences are fixed
implied_arity: Option<isize>
rest_index: Option<usize>
Trait Implementations
sourceimpl Clone for InferenceInfo
impl Clone for InferenceInfo
sourcefn clone(&self) -> InferenceInfo
fn clone(&self) -> InferenceInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for InferenceInfo
impl Send for InferenceInfo
impl Sync for InferenceInfo
impl Unpin for InferenceInfo
impl UnwindSafe for InferenceInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more