Skip to main content

PositionStore

Trait PositionStore 

Source
pub trait PositionStore {
    // Required methods
    fn get_endpoint(&self, id: EndpointId) -> Point;
    fn get_control_point(&self, id: ControlPointId) -> Point;
}
Expand description

Interface for objects storing endpoints and control points positions.

This interface can be implemented by path objects themselves or via external data structures.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'l> PositionStore for (&'l [Point], &'l [Point])

Implementors§

Source§

impl PositionStore for Path

Source§

impl<'l, Endpoint, ControlPoint> PositionStore for CommandsPathSlice<'l, Endpoint, ControlPoint>
where Endpoint: Position, ControlPoint: Position,

Source§

impl<'l, Endpoint> PositionStore for Polygon<'l, Endpoint>
where Endpoint: Position,

Source§

impl<'l> PositionStore for PathSlice<'l>