pub struct InferenceDiagnosticsParentData {
prefix: &'static str,
name: String,
}Expand description
Data on the parent definition where a generic argument was declared.
Fields§
§prefix: &'static str§name: StringImplementations§
source§impl InferenceDiagnosticsParentData
impl InferenceDiagnosticsParentData
fn for_parent_def_id( tcx: TyCtxt<'_>, parent_def_id: DefId ) -> Option<InferenceDiagnosticsParentData>
fn for_def_id( tcx: TyCtxt<'_>, def_id: DefId ) -> Option<InferenceDiagnosticsParentData>
Auto Trait Implementations§
impl RefUnwindSafe for InferenceDiagnosticsParentData
impl Send for InferenceDiagnosticsParentData
impl Sync for InferenceDiagnosticsParentData
impl Unpin for InferenceDiagnosticsParentData
impl UnwindSafe for InferenceDiagnosticsParentData
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: 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: 40 bytes