csskit_transform 0.0.21-canary.fc80f623b7

AST transformation and minification utilities for CSS.
Documentation
1
2
3
4
5
6
7
8
use crate::{Transformer, TransformerFeatures};
use css_parse::{NodeMetadata, NodeWithMetadata};

pub trait Transform<'a, 'ctx, M: NodeMetadata, N: NodeWithMetadata<M>, F: TransformerFeatures<M, N>> {
	fn may_change(features: F, node: &N) -> bool;

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