pub trait HasPosition<const D: usize, Vec: Vector<Self::S, D>> {
type S: Scalar;
// Required methods
fn pos(&self) -> &Vec;
fn from_pos(v: Vec) -> Self;
fn set_pos(&mut self, v: Vec);
}Expand description
Indicates that the vertex payload has a position vector.
Required Associated Types§
Required 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.