Type Alias gluon_check::kindcheck::Error

source ·
pub type Error<I, T = RcType<I>> = Error<KindError<I, T>, ArcKind>;

Aliased Type§

enum Error<I, T = RcType<I>> {
    TypeMismatch(ArcKind, ArcKind),
    Substitution(Error<ArcKind>),
    Other(KindError<I, T>),
}

Variants§

§

TypeMismatch(ArcKind, ArcKind)

§

Substitution(Error<ArcKind>)

§

Other(KindError<I, T>)

Implementations§

source§

impl<I, T> Error<KindError<I, T>, ArcKind>

source

pub fn map_t<U>( self, f: &mut impl FnMut(T) -> U ) -> Error<KindError<I, U>, ArcKind>where T: Clone,

Trait Implementations§

source§

impl<E: Clone, T: Clone> Clone for Error<E, T>

source§

fn clone(&self) -> Error<E, T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<E: Debug, T: Debug> Debug for Error<E, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<E, T> Display for Error<E, T>where T: Display + for<'a> ToDoc<'a, Arena<'a, ()>, (), ()>, E: Display,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, E> From<Error<T>> for Error<E, T>

source§

fn from(err: Error<T>) -> Self

Converts to this type from the input type.
source§

impl<E: Hash, T: Hash> Hash for Error<E, T>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<E: PartialEq, T: PartialEq> PartialEq<Error<E, T>> for Error<E, T>

source§

fn eq(&self, other: &Error<E, T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<E: Eq, T: Eq> Eq for Error<E, T>

source§

impl<E, T> StructuralEq for Error<E, T>

source§

impl<E, T> StructuralPartialEq for Error<E, T>