Struct move_model::simplifier::SpecRewriterPipeline
source · [−]pub struct SpecRewriterPipeline { /* private fields */ }
Expand description
A rewriter pipeline that is composed of a chain of spec rewriters. Note that this composite rewriter is also a spec rewriter.
Implementations
sourceimpl SpecRewriterPipeline
impl SpecRewriterPipeline
sourcepub fn new(pipeline: &[SimplificationPass]) -> Self
pub fn new(pipeline: &[SimplificationPass]) -> Self
Construct a pipeline rewriter by a list of passes
Trait Implementations
sourceimpl SpecRewriter for SpecRewriterPipeline
impl SpecRewriter for SpecRewriterPipeline
sourcefn rewrite_module_spec(
&mut self,
env: &GlobalEnv,
module_id: ModuleId,
spec: &Spec
) -> Result<Option<Spec>>
fn rewrite_module_spec(
&mut self,
env: &GlobalEnv,
module_id: ModuleId,
spec: &Spec
) -> Result<Option<Spec>>
Rewrite a module-level specification
sourcefn rewrite_function_spec(
&mut self,
env: &GlobalEnv,
fun_id: QualifiedId<FunId>,
spec: &Spec
) -> Result<Option<Spec>>
fn rewrite_function_spec(
&mut self,
env: &GlobalEnv,
fun_id: QualifiedId<FunId>,
spec: &Spec
) -> Result<Option<Spec>>
Rewrite a function-level specification
sourcefn rewrite_inline_spec(
&mut self,
env: &GlobalEnv,
fun_id: QualifiedId<FunId>,
code_offset: CodeOffset,
spec: &Spec
) -> Result<Option<Spec>>
fn rewrite_inline_spec(
&mut self,
env: &GlobalEnv,
fun_id: QualifiedId<FunId>,
code_offset: CodeOffset,
spec: &Spec
) -> Result<Option<Spec>>
Rewrite a code-level specification
Auto Trait Implementations
impl !RefUnwindSafe for SpecRewriterPipeline
impl !Send for SpecRewriterPipeline
impl !Sync for SpecRewriterPipeline
impl Unpin for SpecRewriterPipeline
impl !UnwindSafe for SpecRewriterPipeline
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more