[−][src]Enum voile::syntax::core::Neutral
Irreducible because of the presence of generated value.
Variants
Var(DBI)
Local variable, referred by de-bruijn index.
Ref(GI)
Global variable, referred by index. Needed for recursive definitions.
Meta(MI)
Meta variable reference.
Lift(u32, Box<Self>)
Lifting self to a higher/lower level.
Axi(Axiom)
Postulated value, aka axioms.
App(Box<Self>, Vec<Val>)
Function application, with all arguments collected
(so we have easy access to application arguments).
This is convenient for meta resolution and termination check.
The "arguments" is supposed to be non-empty.
Fst(Box<Self>)
Projecting the first element of a pair.
Snd(Box<Self>)
Projecting the second element of a pair.
Methods
impl Neutral
[src]
Trait Implementations
impl RedEx for Neutral
[src]
fn reduce_with_dbi(self, arg: Val, dbi: DBI) -> Val
[src]
fn reduce_with_dbi_borrow(self, arg: &Val, dbi: DBI) -> Val
[src]
impl LiftEx for Neutral
[src]
fn lift(self, levels: u32) -> Self
[src]
fn calc_level(&self) -> Option<Level>
[src]
fn level(&self) -> Level
[src]
Calculate the level of self
, like a normal value will have level 0, a type expression will have level 1 (or higher). Read more
impl PartialEq<Neutral> for Neutral
[src]
impl Eq for Neutral
[src]
fn assert_receiver_is_total_eq(&self)
[src]
impl Clone for Neutral
[src]
fn clone(&self) -> Neutral
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Neutral
[src]
impl Display for Neutral
[src]
Auto Trait Implementations
impl Send for Neutral
impl Unpin for Neutral
impl Sync for Neutral
impl UnwindSafe for Neutral
impl RefUnwindSafe for Neutral
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,