pub enum ResolvedTopLevel {
Module(Module),
FnDef(ResolvedFnDef),
Passthrough(TopLevel),
}Expand description
Resolved top-level item — mirror of crate::ast::TopLevel.
Verify, Decision, TypeDef items pass through with their
original AST representation: they aren’t on the runtime hot
path, and their internal expressions get resolved lazily by
proof-export passes that already consume Expr. Future PRs may
promote them.
Variants§
Module(Module)
FnDef(ResolvedFnDef)
Passthrough(TopLevel)
Verify / Decision / TypeDef items: passthrough for now. Each carries its original AST node — the resolver lifts only what runtime backends consume. See module doc for the rationale + the future PR that promotes these.
Trait Implementations§
Source§impl Clone for ResolvedTopLevel
impl Clone for ResolvedTopLevel
Source§fn clone(&self) -> ResolvedTopLevel
fn clone(&self) -> ResolvedTopLevel
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 ResolvedTopLevel
impl Debug for ResolvedTopLevel
Source§impl PartialEq for ResolvedTopLevel
impl PartialEq for ResolvedTopLevel
Source§fn eq(&self, other: &ResolvedTopLevel) -> bool
fn eq(&self, other: &ResolvedTopLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedTopLevel
Auto Trait Implementations§
impl !Freeze for ResolvedTopLevel
impl RefUnwindSafe for ResolvedTopLevel
impl Send for ResolvedTopLevel
impl Sync for ResolvedTopLevel
impl Unpin for ResolvedTopLevel
impl UnsafeUnpin for ResolvedTopLevel
impl UnwindSafe for ResolvedTopLevel
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