[][src]Trait autograph::Into2d

pub trait Into2d {
    fn into_2d(self) -> [usize; 2];
}

Convenience trait to allow passing either usize or [usize, usize] to functions
ie 1.into_2d() == [1, 1]

Required methods

fn into_2d(self) -> [usize; 2]

Loading content...

Implementations on Foreign Types

impl Into2d for [usize; 2][src]

impl Into2d for (usize, usize)[src]

impl Into2d for usize[src]

Loading content...

Implementors

Loading content...