pub trait VertexSource {
// Required methods
fn rewind(&mut self, path_id: u32);
fn vertex(&mut self, x: &mut f64, y: &mut f64) -> u32;
}Expand description
The fundamental vertex source interface. Every shape, path, and converter in AGG implements this trait to produce a stream of vertices.
Port of the C++ “vertex source concept” — the implicit interface that all AGG vertex sources implement via duck typing (template parameters).
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<T: VertexSource> VertexSource for &mut T
Blanket implementation so &mut T can be used as a VertexSource.
This allows pipeline stages to borrow their source instead of owning it.
impl<T: VertexSource> VertexSource for &mut T
Blanket implementation so &mut T can be used as a VertexSource.
This allows pipeline stages to borrow their source instead of owning it.