pub fn new(pipeline: &[SimplificationPass]) -> Self {
        let mut result = Self { rewriters: vec![] };
        for entry in pipeline {
            match entry {
                SimplificationPass::Inline => {
                    result.rewriters.push(Box::new(SpecPassInline::default()))
                }
            }
        }
        result
    }
/// Construct a pipeline rewriter by a list of passes
Construct a pipeline rewriter by a list of passes
Construct a pipeline rewriter by a list of passes
pub fn new(pipeline: &[SimplificationPass]) -> Self {
        let mut result = Self { rewriters: vec![] };
        for entry in pipeline {
            match entry {
                SimplificationPass::Inline => {
                    result.rewriters.push(Box::new(SpecPassInline::default()))
                }
            }
        }
        result
    }
pub fn new ( pipeline : & [ SimplificationPass ] ) -> Self { let mut result = Self { rewriters : vec ! [ ] } ; for entry in pipeline { match entry { SimplificationPass :: Inline => { result . rewriters . push ( Box :: new ( SpecPassInline :: default ( ) ) ) } } } result }
Construct a pipeline rewriter by a list of passes
Construct a pipeline rewriter by a list of passes
pipeline
&[SimplificationPass]