[−][src]Struct opencv::core::Context
Implementations
impl Context
[src]
pub fn as_raw_Context(&self) -> *const c_void
[src]
pub fn as_raw_mut_Context(&mut self) -> *mut c_void
[src]
impl Context
[src]
pub fn default() -> Result<Context>
[src]
pub fn new_with_type(dtype: i32) -> Result<Context>
[src]
pub fn copy(c: &Context) -> Result<Context>
[src]
pub fn get_default(initialize: bool) -> Result<Context>
[src]
C++ default parameters
- initialize: true
pub fn from_handle(context: *mut c_void) -> Result<Context>
[src]
Parameters
- context: OpenCL handle (cl_context). clRetainContext() is called on success
pub fn from_device(device: &Device) -> Result<Context>
[src]
pub fn create(configuration: &str) -> Result<Context>
[src]
Trait Implementations
impl Boxed for Context
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl ContextTrait for Context
[src]
fn as_raw_Context(&self) -> *const c_void
[src]
fn as_raw_mut_Context(&mut self) -> *mut c_void
[src]
fn create(&mut self) -> Result<bool>
[src]
fn create_with_type(&mut self, dtype: i32) -> Result<bool>
[src]
fn ndevices(&self) -> Result<size_t>
[src]
fn device(&self, idx: size_t) -> Result<Device>
[src]
fn get_prog(
&mut self,
prog: &ProgramSource,
buildopt: &str,
errmsg: &mut String
) -> Result<Program>
[src]
&mut self,
prog: &ProgramSource,
buildopt: &str,
errmsg: &mut String
) -> Result<Program>
fn unload_prog(&mut self, prog: &mut Program) -> Result<()>
[src]
fn ptr(&self) -> Result<*mut c_void>
[src]
fn use_svm(&self) -> Result<bool>
[src]
fn set_use_svm(&mut self, enabled: bool) -> Result<()>
[src]
fn release(&mut self) -> Result<()>
[src]
fn empty(&self) -> Result<bool>
[src]
impl Drop for Context
[src]
impl Send for Context
[src]
Auto Trait Implementations
impl RefUnwindSafe for Context
[src]
impl !Sync for Context
[src]
impl Unpin for Context
[src]
impl UnwindSafe for Context
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,