Enum moniker::FreeVar[][src]

pub enum FreeVar<N> {
    User(N),
    Gen(GenIdOption<N>),
}

A free variable

Variants

Names originating from user input

A generated id with an optional string that may have come from user input (for debugging purposes)

Methods

impl<N> FreeVar<N>
[src]

Create a name from a human-readable string

Trait Implementations

impl<N: PartialEq> BoundTerm<N> for FreeVar<N>
[src]

Alpha equivalence in a term context

Returns the set of free variables in this term

impl<N: Debug> Debug for FreeVar<N>
[src]

Formats the value using the given formatter. Read more

impl<N: Clone> Clone for FreeVar<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N> From<GenId> for FreeVar<N>
[src]

Performs the conversion.

impl<N> PartialEq for FreeVar<N> where
    N: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N> Eq for FreeVar<N> where
    N: Eq
[src]

impl<N> Hash for FreeVar<N> where
    N: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<N: Display> Display for FreeVar<N>
[src]

Formats the value using the given formatter. Read more

impl<N> PartialEq<FreeVar<N>> for Var<N> where
    N: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N> PartialEq<FreeVar<N>> for Binder<N> where
    N: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<N> Send for FreeVar<N> where
    N: Send

impl<N> Sync for FreeVar<N> where
    N: Sync