UnopMismatch

Struct UnopMismatch 

Source
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: oper

Description of the operator.

§expect: expect

What the operator expects.

§site: site

Location of the error.

§inner: inner

Invalid expression and span.

Trait Implementations§

Source§

impl<oper, expect, site, inner> IntoError for UnopMismatch<oper, expect, site, inner>
where oper: Display, expect: Display, site: TrySpan, inner: Display + TrySpan,

Source§

fn into_err(self) -> Error

Produce the sequence of spans and help messages.

Auto Trait Implementations§

§

impl<oper, expect, site, inner> Freeze for UnopMismatch<oper, expect, site, inner>
where oper: Freeze, expect: Freeze, site: Freeze, inner: Freeze,

§

impl<oper, expect, site, inner> RefUnwindSafe for UnopMismatch<oper, expect, site, inner>
where oper: RefUnwindSafe, expect: RefUnwindSafe, site: RefUnwindSafe, inner: RefUnwindSafe,

§

impl<oper, expect, site, inner> Send for UnopMismatch<oper, expect, site, inner>
where oper: Send, expect: Send, site: Send, inner: Send,

§

impl<oper, expect, site, inner> Sync for UnopMismatch<oper, expect, site, inner>
where oper: Sync, expect: Sync, site: Sync, inner: Sync,

§

impl<oper, expect, site, inner> Unpin for UnopMismatch<oper, expect, site, inner>
where oper: Unpin, expect: Unpin, site: Unpin, inner: Unpin,

§

impl<oper, expect, site, inner> UnwindSafe for UnopMismatch<oper, expect, site, inner>
where oper: UnwindSafe, expect: UnwindSafe, site: UnwindSafe, inner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.