pub enum ResolvedStmt {
Binding {
name: String,
ty_ann: Option<Type>,
value: Spanned<ResolvedExpr>,
},
Expr(Spanned<ResolvedExpr>),
}Expand description
Statement form — mirror of crate::ast::Stmt with the
optional type annotation lifted to Type (already canonicalised
against the resolver’s symbol table) instead of a source string.
Variants§
Binding
Expr(Spanned<ResolvedExpr>)
Trait Implementations§
Source§impl Clone for ResolvedStmt
impl Clone for ResolvedStmt
Source§fn clone(&self) -> ResolvedStmt
fn clone(&self) -> ResolvedStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedStmt
impl Debug for ResolvedStmt
Source§impl PartialEq for ResolvedStmt
impl PartialEq for ResolvedStmt
impl StructuralPartialEq for ResolvedStmt
Auto Trait Implementations§
impl !Freeze for ResolvedStmt
impl RefUnwindSafe for ResolvedStmt
impl Send for ResolvedStmt
impl Sync for ResolvedStmt
impl Unpin for ResolvedStmt
impl UnsafeUnpin for ResolvedStmt
impl UnwindSafe for ResolvedStmt
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