[−][src]Enum minitt::ast::GenericTelescope
Generic definition for two kinds of telescopes.
Value
can be specialized with Value
or NormalExpression
.
Implementing Eq
because of NormalExpression
Variants
Nil
Empty telescope
UpDec(Rc<Self>, Declaration)
In Mini-TT, checked declarations are put here. However, it's not possible to store a
recursive declaration as an Expression
(which is a member of Declaration
) here.
The problem is quite complicated and can be reproduced by checking out 0.1.5 revision and
type-check this code (Type
was U
and Sum
was sum
at that time):
ⓘThis example is not tested
rec nat : U = sum { Zero 1 | Suc nat }; -- Inductive definition of nat let one : nat = Zero 0; let two : nat = Suc one; -- Unresolved reference
UpVar(Rc<Self>, Pattern, Value)
Usually a local variable, introduced in your telescope
Trait Implementations
impl<Value: PartialEq + Clone> PartialEq<GenericTelescope<Value>> for GenericTelescope<Value>
[src]
fn eq(&self, other: &GenericTelescope<Value>) -> bool
[src]
fn ne(&self, other: &GenericTelescope<Value>) -> bool
[src]
impl<Value: Clone + Clone> Clone for GenericTelescope<Value>
[src]
fn clone(&self) -> GenericTelescope<Value>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Value: Eq + Clone> Eq for GenericTelescope<Value>
[src]
impl<Value: Clone + Display> Display for GenericTelescope<Value>
[src]
Actually it's for NeutralTelescope
impl<Value: Debug + Clone> Debug for GenericTelescope<Value>
[src]
Auto Trait Implementations
impl<Value> !Send for GenericTelescope<Value>
impl<Value> !Sync for GenericTelescope<Value>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,