pub struct UnopMismatch<oper, expect, site, inner> {
pub oper: oper,
pub expect: expect,
pub site: site,
pub inner: inner,
}Expand description
Generate an error for a unary operator that expected an argument of a specific type.
Fields§
§oper: operDescription of the operator.
expect: expectWhat the operator expects.
site: siteLocation of the error.
inner: innerInvalid expression and span.
Trait Implementations§
Auto Trait Implementations§
impl<oper, expect, site, inner> Freeze for UnopMismatch<oper, expect, site, inner>
impl<oper, expect, site, inner> RefUnwindSafe for UnopMismatch<oper, expect, site, inner>
impl<oper, expect, site, inner> Send for UnopMismatch<oper, expect, site, inner>
impl<oper, expect, site, inner> Sync for UnopMismatch<oper, expect, site, inner>
impl<oper, expect, site, inner> Unpin for UnopMismatch<oper, expect, site, inner>
impl<oper, expect, site, inner> UnwindSafe for UnopMismatch<oper, expect, site, inner>
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