ImageSizeLike

Trait ImageSizeLike 

Source
pub trait ImageSizeLike {
    // Required methods
    fn width(&self) -> u32;
    fn height(&self) -> u32;
}
Expand description

Helper trait to make images generic across ImageSize and VoxelSize

Required Methods§

Source

fn width(&self) -> u32

Returns the width of the region, in pixels / voxels

Source

fn height(&self) -> u32

Returns the height of the region, in pixels / voxels

Implementations on Foreign Types§

Source§

impl ImageSizeLike for ImageSize

Source§

fn width(&self) -> u32

Source§

fn height(&self) -> u32

Source§

impl ImageSizeLike for VoxelSize

Source§

fn width(&self) -> u32

Source§

fn height(&self) -> u32

Implementors§