Skip to main content

PathService

Trait PathService 

Source
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§

Source

fn prepare( &mut self, commands: &[PathCommand], style: PathStyle, constraints: PathConstraints, ) -> (PathId, PathMetrics)

Source

fn release(&mut self, path: PathId)

Provided Methods§

Source

fn measure( &mut self, commands: &[PathCommand], style: PathStyle, constraints: PathConstraints, ) -> PathMetrics

Implementors§