Rewrite

Type Alias Rewrite 

Source
pub type Rewrite<L, N> = RewriteBorrow<'static, L, N>;
Expand description

A RewriteBorrow whose trait objects are 'static.

This is the common case and preserves backward compatibility.

Aliased Type§

pub struct Rewrite<L, N> {
    pub name: GlobalSymbol,
    pub searcher: Arc<dyn Searcher<L, N> + Sync + Send>,
    pub applier: Arc<dyn Applier<L, N> + Sync + Send>,
}

Fields§

§name: GlobalSymbol

The name of the rewrite.

§searcher: Arc<dyn Searcher<L, N> + Sync + Send>

The searcher (left-hand side) of the rewrite.

§applier: Arc<dyn Applier<L, N> + Sync + Send>

The applier (right-hand side) of the rewrite.