[][src]Trait axgeom::Axis

pub trait Axis: Sync + Send + Copy + Clone {
    type Next: Axis;
    pub fn is_xaxis(&self) -> bool;
pub fn next(&self) -> Self::Next; #[must_use] pub fn is_equal_to<B: Axis>(&self, other: B) -> bool { ... } }

Axis trait can be used to extract the x or y portions of a container. when you know the axis as compile time. The X implementation of this trait's Next associated trait is the Y implementation. The Y implementation of this trait's Next associated trait is the X implementation.

Associated Types

Loading content...

Required methods

pub fn is_xaxis(&self) -> bool[src]

pub fn next(&self) -> Self::Next[src]

Loading content...

Provided methods

#[must_use]pub fn is_equal_to<B: Axis>(&self, other: B) -> bool[src]

Loading content...

Implementors

impl Axis for XAXIS[src]

type Next = YAXIS

impl Axis for YAXIS[src]

type Next = XAXIS

Loading content...