pub struct NumericTypeExpected<'db> {
expr: SymExpr<'db>,
ty: SymTy<'db>,
compiler_location: &'static Location<'static>,
}Fields§
§expr: SymExpr<'db>§ty: SymTy<'db>§compiler_location: &'static Location<'static>Implementations§
Trait Implementations§
Source§impl<'db> Clone for NumericTypeExpected<'db>
impl<'db> Clone for NumericTypeExpected<'db>
Source§fn clone(&self) -> NumericTypeExpected<'db>
fn clone(&self) -> NumericTypeExpected<'db>
Returns a duplicate 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<'db> Debug for NumericTypeExpected<'db>
impl<'db> Debug for NumericTypeExpected<'db>
Source§impl<'db> OrElse<'db> for NumericTypeExpected<'db>
impl<'db> OrElse<'db> for NumericTypeExpected<'db>
Source§fn or_else(&self, env: &mut Env<'db>, because: Because<'db>) -> Diagnostic
fn or_else(&self, env: &mut Env<'db>, because: Because<'db>) -> Diagnostic
Create a diagnostic representing the error. Read more
Source§fn to_arc(&self) -> ArcOrElse<'db>
fn to_arc(&self) -> ArcOrElse<'db>
Convert a
&dyn OrElse<'db> into an ArcOrElse<'db> so that it can be
stored in an InferenceVarData
or otherwise preserved beyond the current stack frame.
See the trait comment for more details.Source§fn compiler_location(&self) -> &'static Location<'static>
fn compiler_location(&self) -> &'static Location<'static>
Returns the location in the compiler source where this
or_else was created.
Useful for debugging.impl<'db> Copy for NumericTypeExpected<'db>
Auto Trait Implementations§
impl<'db> Freeze for NumericTypeExpected<'db>
impl<'db> !RefUnwindSafe for NumericTypeExpected<'db>
impl<'db> Send for NumericTypeExpected<'db>
impl<'db> Sync for NumericTypeExpected<'db>
impl<'db> Unpin for NumericTypeExpected<'db>
impl<'db> UnsafeUnpin for NumericTypeExpected<'db>
impl<'db> !UnwindSafe for NumericTypeExpected<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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