Struct rustc_infer::infer::error_reporting::nice_region_error::placeholder_error::Highlighted
source · pub struct Highlighted<'tcx, T> {
tcx: TyCtxt<'tcx>,
highlight: RegionHighlightMode<'tcx>,
value: T,
}Fields§
§tcx: TyCtxt<'tcx>§highlight: RegionHighlightMode<'tcx>§value: TImplementations§
source§impl<'tcx, T> Highlighted<'tcx, T>
impl<'tcx, T> Highlighted<'tcx, T>
fn map<U>(self, f: impl FnOnce(T) -> U) -> Highlighted<'tcx, U>
Trait Implementations§
source§impl<'tcx, T: Clone> Clone for Highlighted<'tcx, T>
impl<'tcx, T: Clone> Clone for Highlighted<'tcx, T>
source§fn clone(&self) -> Highlighted<'tcx, T>
fn clone(&self) -> Highlighted<'tcx, T>
Returns a copy 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<'tcx, T> Display for Highlighted<'tcx, T>where
T: for<'a> Print<'tcx, FmtPrinter<'a, 'tcx>>,
impl<'tcx, T> Display for Highlighted<'tcx, T>where
T: for<'a> Print<'tcx, FmtPrinter<'a, 'tcx>>,
source§impl<'tcx, T> IntoDiagnosticArg for Highlighted<'tcx, T>where
T: for<'a> Print<'tcx, FmtPrinter<'a, 'tcx>>,
impl<'tcx, T> IntoDiagnosticArg for Highlighted<'tcx, T>where
T: for<'a> Print<'tcx, FmtPrinter<'a, 'tcx>>,
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
impl<'tcx, T: Copy> Copy for Highlighted<'tcx, T>
Auto Trait Implementations§
impl<'tcx, T> !RefUnwindSafe for Highlighted<'tcx, T>
impl<'tcx, T> !Send for Highlighted<'tcx, T>
impl<'tcx, T> !Sync for Highlighted<'tcx, T>
impl<'tcx, T> Unpin for Highlighted<'tcx, T>where
T: Unpin,
impl<'tcx, T> !UnwindSafe for Highlighted<'tcx, T>
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.