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

用于扩展 crate::Axis 的便捷方法。

Required Methods§

Source

fn is_horizontal(self) -> bool

是否为水平方向。

Source

fn is_vertical(self) -> bool

是否为垂直方向。

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§