Trait parenchyma::BoxContext
[−]
[src]
pub trait BoxContext<ExtensionPackage>: Framework { fn enclose(&self,
selection: Vec<Hardware>)
-> Result<Box<Context<Package=ExtensionPackage>>>; }
Initialize a context, box it, and then return it.
Required Methods
fn enclose(&self,
selection: Vec<Hardware>)
-> Result<Box<Context<Package=ExtensionPackage>>>
selection: Vec<Hardware>)
-> Result<Box<Context<Package=ExtensionPackage>>>
Create a context from a selection of hardware devices and then wrap it in a box.
Implementors
impl<X> BoxContext<X> for Native where X: ExtensionPackage,
NativeContext<X>: Unsize<X::Extension>impl<X> BoxContext<X> for OpenCL where X: ExtensionPackage + Build<OpenCLContext<Uninitialized>>,
OpenCLContext<X>: Unsize<X::Extension>