pub trait TriangleTrait: Sized + GeometryTrait {
type CoordType<'a>: 'a + CoordTrait<T = Self::T>
where Self: 'a;
// Required methods
fn first(&self) -> Self::CoordType<'_>;
fn second(&self) -> Self::CoordType<'_>;
fn third(&self) -> Self::CoordType<'_>;
// Provided method
fn coords(&self) -> [Self::CoordType<'_>; 3] { ... }
}
Expand description
A trait for accessing data from a generic Triangle.
A triangle is a bounded area whose three vertices are defined by coordinates.
Refer to geo_types::Triangle for information about semantics and validity.
Required Associated Types§
Sourcetype CoordType<'a>: 'a + CoordTrait<T = Self::T>
where
Self: 'a
type CoordType<'a>: 'a + CoordTrait<T = Self::T> where Self: 'a
The type of each underlying coordinate, which implements CoordTrait
Required Methods§
Provided Methods§
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.