pub enum Statement {
Let {
pat: Cst,
type_annot: Option<Cst>,
args: Vec<Cst>,
expr: Cst,
},
LetRec(Vec<LetRecInner>),
LetInline {
var_context: Option<Cst>,
cmd: Cst,
args: Vec<Cst>,
expr: Cst,
},
LetBlock {
var_context: Option<Cst>,
cmd: Cst,
args: Vec<Cst>,
expr: Cst,
},
LetMath {
cmd: Cst,
args: Vec<Cst>,
expr: Cst,
},
LetMutable {
var: Cst,
expr: Cst,
},
Type(Vec<TypeInner>),
Module {
name: Cst,
signature: Vec<Signature>,
statements: Vec<Statement>,
},
Open(Cst),
}Variants§
Let
LetRec(Vec<LetRecInner>)
LetInline
LetBlock
LetMath
LetMutable
Type(Vec<TypeInner>)
Module
Open(Cst)
Trait Implementations§
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more