Struct rustc_typeck::check::inherited::InheritedBuilder
source · [−]pub struct InheritedBuilder<'tcx> {
infcx: InferCtxtBuilder<'tcx>,
def_id: LocalDefId,
}Expand description
Helper type of a temporary returned by Inherited::build(...).
Necessary because we can’t write the following bound:
F: for<'b, 'tcx> where 'tcx FnOnce(Inherited<'b, 'tcx>).
Fields
infcx: InferCtxtBuilder<'tcx>def_id: LocalDefIdImplementations
sourceimpl<'tcx> InheritedBuilder<'tcx>
impl<'tcx> InheritedBuilder<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for InheritedBuilder<'tcx>
impl<'tcx> !Send for InheritedBuilder<'tcx>
impl<'tcx> !Sync for InheritedBuilder<'tcx>
impl<'tcx> Unpin for InheritedBuilder<'tcx>
impl<'tcx> !UnwindSafe for InheritedBuilder<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 664 bytes