Trait 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

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

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

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

Implementors