pub enum MethodError<'db> {
NoMatch,
Ambiguity(Vec<CandidateSource>),
PrivateMatch(Pick<'db>),
IllegalSizedBound {
candidates: Vec<FunctionId>,
needs_mut: bool,
},
ErrorReported,
}Variants§
NoMatch
Did not find an applicable method.
Ambiguity(Vec<CandidateSource>)
Multiple methods might apply.
PrivateMatch(Pick<'db>)
Found an applicable method, but it is not visible.
IllegalSizedBound
Found a Self: Sized bound where Self is a trait object.
ErrorReported
Error has already been emitted, no need to emit another one.
Trait Implementations§
Auto Trait Implementations§
impl<'db> Freeze for MethodError<'db>
impl<'db> RefUnwindSafe for MethodError<'db>
impl<'db> Send for MethodError<'db>
impl<'db> Sync for MethodError<'db>
impl<'db> Unpin for MethodError<'db>
impl<'db> UnwindSafe for MethodError<'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