[][src]Struct gluon_check::unify_type::State

pub struct State<'a> {
    pub in_alias: bool,
    // some fields omitted
}

Fields

in_alias: bool

Methods

impl<'a> State<'a>[src]

pub fn new(
    env: &'a (dyn TypeEnv<Type = RcType> + 'a),
    subs: &'a Substitution<RcType>
) -> State<'a>
[src]

Trait Implementations

impl<'a, 'e> Unifier<State<'a>, ArcType<Symbol>> for UnifierState<'a, Subsume<'e>>[src]

fn try_match(&mut self, l: &Type, r: &Type) -> Option<Type>[src]

Attempt to unify l and r using the strategy of Self.

impl<'a, 'e> Unifier<State<'a>, ArcType<Symbol>> for UnifierState<'a, Equal<'e>>[src]

fn try_match(&mut self, l: &Type, r: &Type) -> Option<Type>[src]

Attempt to unify l and r using the strategy of Self.

fn allow_returned_type_replacement(&self) -> bool[src]

true if the returned type can be replaced by the caller

impl<'a, 'e> Unifier<State<'a>, ArcType<Symbol>> for UnifierState<'a, Smaller>[src]

fn try_match(&mut self, l: &Type, r: &Type) -> Option<Type>[src]

Attempt to unify l and r using the strategy of Self.

fn allow_returned_type_replacement(&self) -> bool[src]

true if the returned type can be replaced by the caller

impl<'a> Unifiable<State<'a>> for RcType[src]

type Error = TypeError<Symbol, RcType>

impl<'a> Clone for State<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> !Send for State<'a>

impl<'a> !Sync for State<'a>

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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.