[][src]Struct kontroli::Arg

pub struct Arg<Id, Ty> {
    pub id: Id,
    pub ty: Ty,
}

Argument of a binder. For example, the x and A in the term \ x : A => t.

Fields

id: Idty: Ty

Implementations

impl<'s, Id> Arg<Id, Option<RTerm<'s>>>[src]

pub fn type_ptr_eq(&self, other: &Self) -> bool[src]

Compare the memory addresses of the argument types.

impl<'s, Id> Arg<Id, Option<RTerm<'s>>>[src]

pub fn type_ptr_eq(&self, other: &Self) -> bool[src]

Compare the memory addresses of the argument types.

impl<Id, Ty> Arg<Id, Ty>[src]

pub fn map_id<F, J>(self, f: F) -> Arg<J, Ty> where
    F: FnOnce(Id) -> J, 
[src]

pub fn map_ty<F, U>(self, f: F) -> Arg<Id, U> where
    F: FnOnce(Ty) -> U, 
[src]

pub fn map_ty_res<F, U, E>(self, f: F) -> Result<Arg<Id, U>, E> where
    F: FnOnce(Ty) -> Result<U, E>, 
[src]

Trait Implementations

impl<Id: Clone, Ty: Clone> Clone for Arg<Id, Ty>[src]

impl<Id: Debug, Ty: Debug> Debug for Arg<Id, Ty>[src]

impl<Id: Eq, Ty: Eq> Eq for Arg<Id, Ty>[src]

impl<Id: PartialEq, Ty: PartialEq> PartialEq<Arg<Id, Ty>> for Arg<Id, Ty>[src]

impl<Id, Ty> StructuralEq for Arg<Id, Ty>[src]

impl<Id, Ty> StructuralPartialEq for Arg<Id, Ty>[src]

Auto Trait Implementations

impl<Id, Ty> RefUnwindSafe for Arg<Id, Ty> where
    Id: RefUnwindSafe,
    Ty: RefUnwindSafe

impl<Id, Ty> Send for Arg<Id, Ty> where
    Id: Send,
    Ty: Send

impl<Id, Ty> Sync for Arg<Id, Ty> where
    Id: Sync,
    Ty: Sync

impl<Id, Ty> Unpin for Arg<Id, Ty> where
    Id: Unpin,
    Ty: Unpin

impl<Id, Ty> UnwindSafe for Arg<Id, Ty> where
    Id: UnwindSafe,
    Ty: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.