[][src]Struct nar::syntax::core::decl::Clause

pub struct Clause {
    pub pat_tele: Tele,
    pub patterns: Vec<CoreCopat>,
    pub body: Option<Term>,
}

Function clauses. Agda.

Fields

pat_tele: Tele

$\Delta$. The types of the pattern variables in dependency order.

patterns: Vec<CoreCopat>

$\Delta \vdash ps$. The de Bruijn indices refer to $\Delta$.

body: Option<Term>

Some(v) if $\Delta \vdash v$, while None if the patterns are absurd.

Methods

impl Clause[src]

pub fn is_absurd(&self) -> bool[src]

Trait Implementations

impl Clone for Clause[src]

impl Debug for Clause[src]

impl Eq for Clause[src]

impl PartialEq<Clause> for Clause[src]

impl StructuralEq for Clause[src]

impl StructuralPartialEq for Clause[src]

Auto Trait Implementations

impl RefUnwindSafe for Clause

impl Send for Clause

impl Sync for Clause

impl Unpin for Clause

impl UnwindSafe for Clause

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> 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.