pub trait SvgPostprocessor: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn process<'a>(
&self,
svg: Cow<'a, str>,
ctx: &SvgPostprocessContext<'_>,
) -> Result<Cow<'a, str>>;
// Provided method
fn scoped_css(&self) -> Option<&str> { ... }
}Required Methods§
fn name(&self) -> &'static str
fn process<'a>( &self, svg: Cow<'a, str>, ctx: &SvgPostprocessContext<'_>, ) -> Result<Cow<'a, str>>
Provided Methods§
Sourcefn scoped_css(&self) -> Option<&str>
fn scoped_css(&self) -> Option<&str>
Host CSS injected by this pass after layout, when applicable.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".