pub(crate) struct WriteBackCtxt<'db> {
table: InferenceTable<'db>,
diagnostics: ThinVec<InferenceDiagnostic>,
has_errors: bool,
spans_emitted_type_must_be_known_for: FxHashSet<Span>,
types: &'db DefaultAny<'db>,
}Fields§
§table: InferenceTable<'db>§diagnostics: ThinVec<InferenceDiagnostic>§has_errors: bool§spans_emitted_type_must_be_known_for: FxHashSet<Span>§types: &'db DefaultAny<'db>Implementations§
Source§impl<'db> WriteBackCtxt<'db>
impl<'db> WriteBackCtxt<'db>
pub(crate) fn new( table: InferenceTable<'db>, diagnostics: ThinVec<InferenceDiagnostic>, vars_emitted_type_must_be_known_for: FxHashSet<Term<'db>>, ) -> Self
pub(crate) fn resolve_completely<T>(&mut self, value_ref: &mut T)where
T: TypeFoldable<DbInterner<'db>>,
pub(crate) fn resolve_completely_with_default<T>(
&mut self,
value_ref: &mut T,
default: T,
)where
T: TypeFoldable<DbInterner<'db>>,
pub(crate) fn resolve_diagnostics(self) -> (ThinVec<InferenceDiagnostic>, bool)
Auto Trait Implementations§
impl<'db> !Freeze for WriteBackCtxt<'db>
impl<'db> !RefUnwindSafe for WriteBackCtxt<'db>
impl<'db> !Send for WriteBackCtxt<'db>
impl<'db> !Sync for WriteBackCtxt<'db>
impl<'db> Unpin for WriteBackCtxt<'db>
impl<'db> UnsafeUnpin for WriteBackCtxt<'db>
impl<'db> !UnwindSafe for WriteBackCtxt<'db>
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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more