PatternR

Type Alias PatternR 

Source
pub type PatternR<S> = Spanned<S, PatternRInner<S>>;
Expand description

Raw syntax pattern with text span. Represents a list of tensored patterns composed together.

Aliased Type§

pub struct PatternR<S> {
    pub inner: PatternRInner<S>,
    pub span: S,
}

Fields§

§inner: PatternRInner<S>

Wrapped data

§span: S

Text span

Implementations§

Source§

impl<S: Span> PatternR<S>

Source

pub fn check(&self, env: &Env) -> Result<PatternT, TypeCheckError<S>>

Typecheck a raw pattern in given environment