Transform

Trait Transform 

Source
pub trait Transform<'a, 'ctx, M: NodeMetadata, N: NodeWithMetadata<M>, F: TransformerFeatures<M, N>> {
    // Required methods
    fn may_change(features: F, node: &N) -> bool;
    fn new(transformer: &'ctx Transformer<'a, M, N, F>) -> Self;
}

Required Methods§

Source

fn may_change(features: F, node: &N) -> bool

Source

fn new(transformer: &'ctx Transformer<'a, M, N, F>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, 'ctx, N> Transform<'a, 'ctx, CssMetadata, N, CssMinifierFeature> for ReduceColors<'a, 'ctx, N>
where N: Visitable + NodeWithMetadata<CssMetadata>,

Source§

impl<'a, 'ctx, N> Transform<'a, 'ctx, CssMetadata, N, CssMinifierFeature> for ReduceLengths<'a, 'ctx, N>
where N: Visitable + NodeWithMetadata<CssMetadata>,

Source§

impl<'a, 'ctx, N> Transform<'a, 'ctx, CssMetadata, N, CssMinifierFeature> for ReduceTimeUnits<'a, 'ctx, N>
where N: Visitable + NodeWithMetadata<CssMetadata>,