pub struct Tuple<T>where
Self: TupleExtern,{ /* private fields */ }
Implementations§
source§impl Tuple<(Point2i, Point2i)>
impl Tuple<(Point2i, Point2i)>
pub fn as_raw_TupleOfPoint2i_Point2i( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfPoint2i_Point2i( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(Rect, i32)>
impl Tuple<(Rect, i32)>
pub fn as_raw_TupleOfRect_i32( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfRect_i32( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(UMat, u8)>
impl Tuple<(UMat, u8)>
pub fn as_raw_TupleOfUMat_u8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfUMat_u8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(i32, f32)>
impl Tuple<(i32, f32)>
pub fn as_raw_TupleOfi32_f32( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfi32_f32( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(i32, f64)>
impl Tuple<(i32, f64)>
pub fn as_raw_TupleOfi32_f64( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfi32_f64( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(Backend, Target)>
impl Tuple<(Backend, Target)>
pub fn as_raw_TupleOfBackend_Target( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfBackend_Target( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(GBackend, GKernelImpl)>
impl Tuple<(GBackend, GKernelImpl)>
pub fn as_raw_TupleOfGBackend_GKernelImpl( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfGBackend_GKernelImpl( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(GBackend, GKernelImpl)>
impl Tuple<(GBackend, GKernelImpl)>
pub fn get_0(&self) -> GBackend
pub fn get_1(&self) -> GKernelImpl
sourcepub fn new(s: (GBackend, GKernelImpl)) -> Self
pub fn new(s: (GBackend, GKernelImpl)) -> Self
Create new from a Rust tuple
sourcepub fn into_tuple(self) -> (GBackend, GKernelImpl)
pub fn into_tuple(self) -> (GBackend, GKernelImpl)
Convert into a Rust tuple
source§impl Tuple<(GMat, GMat)>
impl Tuple<(GMat, GMat)>
pub fn as_raw_TupleOfGMat_GMat( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfGMat_GMat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(GMat, GMat, GMat)>
impl Tuple<(GMat, GMat, GMat)>
pub fn as_raw_TupleOfGMat_GMat_GMat( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfGMat_GMat_GMat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(GMat, GMat, GMat, GMat)>
impl Tuple<(GMat, GMat, GMat, GMat)>
pub fn as_raw_TupleOfGMat_GMat_GMat_GMat( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfGMat_GMat_GMat_GMat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Tuple<(GMat, GScalar)>
impl Tuple<(GMat, GScalar)>
pub fn as_raw_TupleOfGMat_GScalar( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend
pub fn as_raw_mut_TupleOfGMat_GScalar( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
Trait Implementations§
source§impl<T> Boxed for Tuple<T>where
Self: TupleExtern,
impl<T> Boxed for Tuple<T>where
Self: TupleExtern,
impl TupleExtern for Tuple<(Backend, Target)>
impl TupleExtern for Tuple<(GBackend, GKernelImpl)>
impl TupleExtern for Tuple<(GMat, GMat)>
impl TupleExtern for Tuple<(GMat, GMat, GMat)>
impl TupleExtern for Tuple<(GMat, GMat, GMat, GMat)>
impl TupleExtern for Tuple<(GMat, GScalar)>
impl TupleExtern for Tuple<(Point2i, Point2i)>
impl TupleExtern for Tuple<(Rect, i32)>
impl TupleExtern for Tuple<(UMat, u8)>
impl TupleExtern for Tuple<(i32, f32)>
impl TupleExtern for Tuple<(i32, f64)>
Auto Trait Implementations§
impl<T> Freeze for Tuple<T>
impl<T> RefUnwindSafe for Tuple<T>where
T: RefUnwindSafe,
impl<T> !Send for Tuple<T>
impl<T> !Sync for Tuple<T>
impl<T> Unpin for Tuple<T>where
T: Unpin,
impl<T> UnwindSafe for Tuple<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more