Enum rustc_resolve::late::diagnostics::AssocSuggestion
source · enum AssocSuggestion {
Field(Span),
MethodWithSelf {
called: bool,
},
AssocFn {
called: bool,
},
AssocType,
AssocConst,
}
Expand description
A field or associated item from self type suggested in case of resolution failure.
Variants§
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AssocSuggestion
impl !Send for AssocSuggestion
impl !Sync for AssocSuggestion
impl Unpin for AssocSuggestion
impl UnwindSafe for AssocSuggestion
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: 12 bytes
Size for each variant:
Field
: 11 bytesMethodWithSelf
: 1 byteAssocFn
: 1 byteAssocType
: 0 bytesAssocConst
: 0 bytes