Enum collenchyma::memory::MemoryType [] [src]

pub enum MemoryType {
    Native(FlatBox),
}

Container for all known IMemory implementations

Variants

Native

A Native Memory representation.

Methods

impl MemoryType

fn as_native(&self) -> Option<&FlatBox>

Extract the FlatBox if MemoryType is Native.

fn as_mut_native(&mut self) -> Option<&mut FlatBox>

Extract the FlatBox mutably if MemoryType is Native.

fn into_native(self) -> Option<FlatBox>

Consumes the Memory and returns an owned OpenCL Memory.

Trait Implementations

Derived Implementations

impl Debug for MemoryType

fn fmt(&self, __arg_0: &mut Formatter) -> Result