pub trait PathService {
// Required methods
fn prepare(
&mut self,
commands: &[PathCommand],
style: PathStyle,
constraints: PathConstraints,
) -> (PathId, PathMetrics);
fn release(&mut self, path: PathId);
// Provided method
fn measure(
&mut self,
commands: &[PathCommand],
style: PathStyle,
constraints: PathConstraints,
) -> PathMetrics { ... }
}Required Methods§
fn prepare( &mut self, commands: &[PathCommand], style: PathStyle, constraints: PathConstraints, ) -> (PathId, PathMetrics)
fn release(&mut self, path: PathId)
Provided Methods§
fn measure( &mut self, commands: &[PathCommand], style: PathStyle, constraints: PathConstraints, ) -> PathMetrics
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".