pub trait Direction:
Sized
+ Debug
+ Send
+ Sync
+ 'static {
type Pos: Direction;
// Required methods
fn unit() -> Vec2;
fn main(v: Vec2) -> Vec2;
fn main_vec(v: f32) -> Vec2;
fn len(v: Vec2) -> f32;
fn project(v: Vec2) -> f32;
fn side(v: Vec2) -> Vec2;
fn side_vec(v: f32) -> Vec2;
fn signum(v: Vec2) -> Vec2;
fn reversed() -> bool;
fn bucket(anc: Vec2) -> Trinary;
}Expand description
Direction of a layout.
Required Associated Types§
Required Methods§
fn unit() -> Vec2
fn main(v: Vec2) -> Vec2
fn main_vec(v: f32) -> Vec2
fn len(v: Vec2) -> f32
fn project(v: Vec2) -> f32
fn side(v: Vec2) -> Vec2
fn side_vec(v: f32) -> Vec2
fn signum(v: Vec2) -> Vec2
fn reversed() -> bool
fn bucket(anc: Vec2) -> Trinary
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.