Skip to main content

AxisExt

Trait AxisExt 

Source
pub trait AxisExt {
    // Required methods
    fn is_horizontal(self) -> bool;
    fn is_vertical(self) -> bool;
}
Expand description

Extension trait for Axis

Required Methods§

Source

fn is_horizontal(self) -> bool

Returns true if the axis is horizontal

Source

fn is_vertical(self) -> bool

Returns true if the axis is vertical

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§