Skip to main content

YUpDown

Trait YUpDown 

Source
pub trait YUpDown {
    // Required methods
    fn up() -> i32;
    fn down() -> i32;
}
Expand description

A helper trait that tells whether up and down are positive or negative.

Required Methods§

Source

fn up() -> i32

Returns 1 or -1 depending on the up direction.

Source

fn down() -> i32

Returns 1 or -1 depending on the down direction.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§