Trait fil_ocl::traits::MemLen[][src]

pub trait MemLen {
    fn to_len(&self) -> usize;
fn to_len_padded(&self, incr: usize) -> usize;
fn to_lens(&self) -> [usize; 3]; }

Types which have properties allowing them to be used to define the size of a volume of memory.

Units are expressed in bytes / size_of(T) just like Vec::len().

Required methods

fn to_len(&self) -> usize[src]

Returns the exact number of elements of a volume of memory (equivalent to Vec::len()).

fn to_len_padded(&self, incr: usize) -> usize[src]

Returns the length of a volume of memory padded to the next multiple of incr.

fn to_lens(&self) -> [usize; 3][src]

Returns the exact lengths of each dimension of a volume of memory.

Loading content...

Implementations on Foreign Types

impl<'a, D> MemLen for &'a D where
    D: MemLen
[src]

impl<D> MemLen for (D,) where
    D: Num + ToPrimitive + Debug + Copy
[src]

impl<D> MemLen for [D; 1] where
    D: Num + ToPrimitive + Debug + Copy
[src]

impl<D> MemLen for (D, D) where
    D: Num + ToPrimitive + Debug + Copy
[src]

impl<D> MemLen for [D; 2] where
    D: Num + ToPrimitive + Debug + Copy
[src]

impl<'a, D> MemLen for (D, D, D) where
    D: Num + ToPrimitive + Debug + Copy
[src]

impl<'a, D> MemLen for [D; 3] where
    D: Num + ToPrimitive + Debug + Copy
[src]

Loading content...

Implementors

impl MemLen for SpatialDims[src]

impl MemLen for ProQue[src]

Loading content...