Skip to main content

Orientation

Trait Orientation 

Source
pub trait Orientation<K, V> {
    type XType;
    type YType;

    // Required methods
    fn make_coord(key: K, val: V) -> (Self::XType, Self::YType);
    fn with_offset(coord: BackendCoord, offset: i32) -> BackendCoord;
}
Expand description

Trait implemented by box plot orientations (Vertical and Horizontal)

Required Associated Types§

Required Methods§

Source

fn make_coord(key: K, val: V) -> (Self::XType, Self::YType)

Source

fn with_offset(coord: BackendCoord, offset: i32) -> BackendCoord

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.

Implementors§

Source§

impl<K, V> Orientation<K, V> for Horizontal<K, V>

Source§

type XType = V

Source§

type YType = K

Source§

impl<K, V> Orientation<K, V> for Vertical<K, V>

Source§

type XType = K

Source§

type YType = V