pub trait HasEdges {
type Edge: GeometricPrimitive;
// Required methods
fn edge_count(&self) -> usize;
fn edge(&self, index: usize) -> Option<Self::Edge>;
}Expand description
Provides indexed access to a shape’s derived geometric edges.
Unlike HasLines, this trait does not imply that edges are stored in a table. Edges may be
computed views over a higher-level primitive boundary.
Required Associated Types§
Sourcetype Edge: GeometricPrimitive
type Edge: GeometricPrimitive
Edge type returned by the implementor.
Required Methods§
Sourcefn edge_count(&self) -> usize
fn edge_count(&self) -> usize
Number of edges available on the shape.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".