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

pub enum MemoryType {
    Native(FlatBox),
    OpenCL(OpenCLMemory),
    Cuda(CudaMemory),
}

Container for all known IMemory implementations

Variants

A Native Memory representation.

A OpenCL Memory representation.

A Cuda Memory representation.

Methods

impl MemoryType
[src]

Extract the FlatBox if MemoryType is Native.

Extract the FlatBox mutably if MemoryType is Native.

Consumes the Memory and returns an owned OpenCL Memory.

Extract the OpenCL Memory if MemoryType is OpenCL.

Extract the OpenCL Memory mutably if MemoryType is OpenCL.

Consumes the Memory and returns an owned OpenCL Memory.

Extract the Cuda Memory if MemoryType is Cuda

Extract the Cuda Memory mutably if MemoryType is Cuda

Consumes the Memory and returns an owned Cuda Memory.

Trait Implementations

impl Debug for MemoryType
[src]

Formats the value using the given formatter.