[][src]Enum kontroli::Intro

pub enum Intro<Ty, Tm> {
    Definition(Option<Ty>, Option<Tm>),
    Theorem(Ty, Tm),
    Declaration(Ty),
}

The way we introduce a new name.

Variants

Definition(Option<Ty>, Option<Tm>)
Theorem(Ty, Tm)
Declaration(Ty)

Implementations

impl Intro<Box<Term>, Box<Term>>[src]

pub fn parametrise(self, args: Vec<Arg>) -> Self[src]

impl Intro<Box<Term>, Box<Term>>[src]

pub fn scope<'s>(self, syms: &Symbols<'s>) -> Result<Intro<'s>, Error>[src]

impl<Ty, Tm> Intro<Ty, Tm>[src]

pub fn map_type<F, U>(self, f: F) -> Intro<U, Tm> where
    F: FnOnce(Ty) -> U, 
[src]

pub fn map_term<F, U>(self, f: F) -> Intro<Ty, U> where
    F: FnOnce(Tm) -> U, 
[src]

pub fn map_type_err<F, U, E>(self, f: F) -> Result<Intro<U, Tm>, E> where
    F: FnOnce(Ty) -> Result<U, E>, 
[src]

pub fn map_term_err<F, U, E>(self, f: F) -> Result<Intro<Ty, U>, E> where
    F: FnOnce(Tm) -> Result<U, E>, 
[src]

Trait Implementations

impl<Ty: Clone, Tm: Clone> Clone for Intro<Ty, Tm>[src]

impl<Ty: Debug, Tm: Debug> Debug for Intro<Ty, Tm>[src]

impl<Ty: Display, Tm: Display> Display for Intro<Ty, Tm>[src]

impl<'s> From<Intro<RTerm<'s>, RTerm<'s>>> for Intro<'s>[src]

impl<'s> From<Intro<RTerm<'s>, RTerm<'s>>> for Intro<'s>[src]

Auto Trait Implementations

impl<Ty, Tm> RefUnwindSafe for Intro<Ty, Tm> where
    Tm: RefUnwindSafe,
    Ty: RefUnwindSafe

impl<Ty, Tm> Send for Intro<Ty, Tm> where
    Tm: Send,
    Ty: Send

impl<Ty, Tm> Sync for Intro<Ty, Tm> where
    Tm: Sync,
    Ty: Sync

impl<Ty, Tm> Unpin for Intro<Ty, Tm> where
    Tm: Unpin,
    Ty: Unpin

impl<Ty, Tm> UnwindSafe for Intro<Ty, Tm> where
    Tm: 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> ToString for T where
    T: Display + ?Sized
[src]

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.