pub trait EdgeMidpoint: Geometry {
type Midpoint;
// Required method
fn midpoint<M>(
edge: EdgeView<M, Self>,
) -> Result<Self::Midpoint, GraphError>
where M: Reborrow,
M::Target: AsStorage<ArcPayload<Self>> + AsStorage<EdgePayload<Self>> + AsStorage<VertexPayload<Self>>;
}
Required Associated Types§
Required Methods§
fn midpoint<M>(edge: EdgeView<M, Self>) -> Result<Self::Midpoint, GraphError>where
M: Reborrow,
M::Target: AsStorage<ArcPayload<Self>> + AsStorage<EdgePayload<Self>> + AsStorage<VertexPayload<Self>>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.