[][src]Trait axgeom::AxisTrait

pub trait AxisTrait: Sync + Send + Copy + Clone {
    type Next: AxisTrait;
    fn is_xaxis(&self) -> bool;
fn next(&self) -> Self::Next; fn is_equal_to<B: AxisTrait>(&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

fn is_xaxis(&self) -> bool

fn next(&self) -> Self::Next

Loading content...

Provided methods

fn is_equal_to<B: AxisTrait>(&self, other: B) -> bool

Loading content...

Implementors

impl AxisTrait for XAXISS[src]

type Next = YAXISS

impl AxisTrait for YAXISS[src]

type Next = XAXISS

Loading content...