[][src]Enum gluon_check::unify_type::TypeError

pub enum TypeError<I, T> {
    UndefinedType(I),
    FieldMismatch(I, I),
    SelfRecursiveAlias(I),
    UnableToGeneralize(I),
    MissingFields(T, Vec<I>),
    EscapingSkolem(I),
}

Variants

UndefinedType(I)FieldMismatch(I, I)SelfRecursiveAlias(I)UnableToGeneralize(I)MissingFields(T, Vec<I>)EscapingSkolem(I)

Methods

impl<I, T> TypeError<I, T>[src]

pub fn map_t<RET>(self, __f: &mut impl FnMut(T) -> RET) -> TypeError<I, RET> where
    T: Clone
[src]

impl<I, T> TypeError<I, T> where
    I: Display + AsRef<str>,
    T: TypeExt<Id = I> + Commented + HasSpan
[src]

pub fn make_filter<'a>(&'a self) -> Box<dyn Fn(&I) -> Filter + 'a>[src]

pub fn filter_fmt(
    &self,
    filter: &dyn Fn(&I) -> Filter,
    f: &mut Formatter
) -> Result
[src]

Trait Implementations

impl<I: PartialEq, T: PartialEq> PartialEq<TypeError<I, T>> for TypeError<I, T>[src]

impl<T> From<Error> for TypeError<Symbol, T>[src]

impl<I, T> Display for TypeError<I, T> where
    I: Display + AsRef<str>,
    T: TypeExt<Id = I> + Commented + HasSpan
[src]

impl<I: Debug, T: Debug> Debug for TypeError<I, T>[src]

Auto Trait Implementations

impl<I, T> Send for TypeError<I, T> where
    I: Send,
    T: Send

impl<I, T> Sync for TypeError<I, T> where
    I: Sync,
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.