/// An error raised when we expect a certain constant value but get another.
An error raised when we expect a certain constant value but get another.
An error raised when we expect a certain constant value but get another .
pub fn expected<S, E>(spanned: S, actual: &IrValue) -> Self
    where
        S: Spanned,
        E: TypeOf,
    {
        IrError::new(
            spanned,
            IrErrorKind::Expected {
                expected: E::type_info(),
                actual: actual.type_info(),
            },
        )
    }
pub fn expected < S , E > ( spanned : S , actual : & IrValue ) -> Self where S : Spanned , E : TypeOf , { IrError :: new ( spanned , IrErrorKind :: Expected { expected : E :: type_info ( ) , actual : actual . type_info ( ) , } , ) }
An error raised when we expect a certain constant value but get another.
An error raised when we expect a certain constant value but get another .
spanned
S
actual
&IrValue