pub trait IsTriangle<'a, T: IsPoint, N: IsUnitVector>: IsPolygon<'a, T, N> {
// Required methods
fn a_id(&self) -> PointId;
fn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>;
fn b_id(&self) -> PointId;
fn set_b_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>;
fn c_id(&self) -> PointId;
fn set_c_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>;
// Provided methods
fn a(&self) -> Option<T> { ... }
fn b(&self) -> Option<T> { ... }
fn c(&self) -> Option<T> { ... }
fn edge_ab(&self) -> Option<<Self as HasEdges>::Edge> { ... }
fn edge_bc(&self) -> Option<<Self as HasEdges>::Edge> { ... }
fn edge_ca(&self) -> Option<<Self as HasEdges>::Edge> { ... }
}Expand description
A triangle primitive backed by a point table and treated as a polygon specialization.
Required Methods§
Sourcefn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
fn set_a_id(&mut self, point_id: PointId) -> Result<(), ErrorsJSL>
Sets the point-table id of the first vertex.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".