Enum pomelo_parse::ast::patterns::Pat
source · pub enum Pat {
Layered(LayeredPat),
Typed(TypedPat),
ConsOrInfix(ConsOrInfixPat),
Atomic(AtomicPat),
}
Variants§
Trait Implementations§
source§impl AstNode for Pat
impl AstNode for Pat
type Language = SML
fn can_cast(kind: SyntaxKind) -> bool
fn cast(node: SyntaxNode) -> Option<Self>where
Self: Sized,
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl From<ConsOrInfixPat> for Pat
impl From<ConsOrInfixPat> for Pat
source§fn from(x: ConsOrInfixPat) -> Self
fn from(x: ConsOrInfixPat) -> Self
Converts to this type from the input type.
source§impl From<LayeredPat> for Pat
impl From<LayeredPat> for Pat
source§fn from(x: LayeredPat) -> Self
fn from(x: LayeredPat) -> Self
Converts to this type from the input type.