Struct Tuple

Source
pub struct Tuple<T>
where Self: TupleExtern,
{ /* private fields */ }
Expand description

Wrapper for C++ std::tupe and std::pair

Implementations§

Source§

impl Tuple<(Point2i, Point2i)>

Source

pub fn as_raw_TupleOfPoint2i_Point2i( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfPoint2i_Point2i( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(Point2i, Point2i)>

Source

pub fn get_0(&self) -> Point2i

Source

pub fn get_1(&self) -> Point2i

Source

pub fn new(s: (Point2i, Point2i)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (Point2i, Point2i)

Convert into a Rust tuple

Source§

impl Tuple<(Rect, i32)>

Source

pub fn as_raw_TupleOfRect_i32( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfRect_i32( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(Rect, i32)>

Source

pub fn get_0(&self) -> Rect

Source

pub fn get_1(&self) -> i32

Source

pub fn new(s: (Rect, i32)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (Rect, i32)

Convert into a Rust tuple

Source§

impl Tuple<(UMat, u8)>

Source

pub fn as_raw_TupleOfUMat_u8( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfUMat_u8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(UMat, u8)>

Source

pub fn get_0(&self) -> UMat

Source

pub fn get_1(&self) -> u8

Source

pub fn new(s: (UMat, u8)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (UMat, u8)

Convert into a Rust tuple

Source§

impl Tuple<(i32, f32)>

Source

pub fn as_raw_TupleOfi32_f32( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfi32_f32( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(i32, f32)>

Source

pub fn get_0(&self) -> i32

Source

pub fn get_1(&self) -> f32

Source

pub fn new(s: (i32, f32)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (i32, f32)

Convert into a Rust tuple

Source§

impl Tuple<(i32, f64)>

Source

pub fn as_raw_TupleOfi32_f64( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfi32_f64( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(i32, f64)>

Source

pub fn get_0(&self) -> i32

Source

pub fn get_1(&self) -> f64

Source

pub fn new(s: (i32, f64)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (i32, f64)

Convert into a Rust tuple

Source§

impl Tuple<(Backend, Target)>

Source

pub fn as_raw_TupleOfBackend_Target( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfBackend_Target( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(Backend, Target)>

Source

pub fn get_0(&self) -> Backend

Source

pub fn get_1(&self) -> Target

Source

pub fn new(s: (Backend, Target)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (Backend, Target)

Convert into a Rust tuple

Source§

impl Tuple<(GBackend, GKernelImpl)>

Source

pub fn as_raw_TupleOfGBackend_GKernelImpl( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfGBackend_GKernelImpl( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(GBackend, GKernelImpl)>

Source

pub fn get_0(&self) -> GBackend

Source

pub fn get_1(&self) -> GKernelImpl

Source

pub fn new(s: (GBackend, GKernelImpl)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (GBackend, GKernelImpl)

Convert into a Rust tuple

Source§

impl Tuple<(GMat, GMat)>

Source

pub fn as_raw_TupleOfGMat_GMat( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfGMat_GMat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(GMat, GMat)>

Source

pub fn get_0(&self) -> GMat

Source

pub fn get_1(&self) -> GMat

Source

pub fn new(s: (GMat, GMat)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (GMat, GMat)

Convert into a Rust tuple

Source§

impl Tuple<(GMat, GMat, GMat)>

Source

pub fn as_raw_TupleOfGMat_GMat_GMat( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfGMat_GMat_GMat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(GMat, GMat, GMat)>

Source

pub fn get_0(&self) -> GMat

Source

pub fn get_1(&self) -> GMat

Source

pub fn get_2(&self) -> GMat

Source

pub fn new(s: (GMat, GMat, GMat)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (GMat, GMat, GMat)

Convert into a Rust tuple

Source§

impl Tuple<(GMat, GMat, GMat, GMat)>

Source

pub fn as_raw_TupleOfGMat_GMat_GMat_GMat( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfGMat_GMat_GMat_GMat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(GMat, GMat, GMat, GMat)>

Source

pub fn get_0(&self) -> GMat

Source

pub fn get_1(&self) -> GMat

Source

pub fn get_2(&self) -> GMat

Source

pub fn get_3(&self) -> GMat

Source

pub fn new(s: (GMat, GMat, GMat, GMat)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (GMat, GMat, GMat, GMat)

Convert into a Rust tuple

Source§

impl Tuple<(GMat, GScalar)>

Source

pub fn as_raw_TupleOfGMat_GScalar( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend

Source

pub fn as_raw_mut_TupleOfGMat_GScalar( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

Source§

impl Tuple<(GMat, GScalar)>

Source

pub fn get_0(&self) -> GMat

Source

pub fn get_1(&self) -> GScalar

Source

pub fn new(s: (GMat, GScalar)) -> Self

Create new from a Rust tuple

Source

pub fn into_tuple(self) -> (GMat, GScalar)

Convert into a Rust tuple

Trait Implementations§

Source§

impl<T> Boxed for Tuple<T>
where Self: TupleExtern,

Source§

unsafe fn from_raw(ptr: *mut c_void) -> Self

Wrap the specified raw pointer Read more
Source§

fn into_raw(self) -> *mut c_void

Return the underlying raw pointer while consuming this wrapper. Read more
Source§

fn as_raw(&self) -> *const c_void

Return the underlying raw pointer. Read more
Source§

fn as_raw_mut(&mut self) -> *mut c_void

Return the underlying mutable raw pointer Read more
Source§

impl<T> Drop for Tuple<T>
where Tuple<T>: TupleExtern,

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<T: Send> Send for Tuple<T>
where Self: TupleExtern,

Source§

impl<T: Sync> Sync for Tuple<T>
where Self: TupleExtern,

Source§

impl TupleExtern for Tuple<(Backend, Target)>

Source§

impl TupleExtern for Tuple<(GBackend, GKernelImpl)>

Source§

impl TupleExtern for Tuple<(GMat, GMat)>

Source§

impl TupleExtern for Tuple<(GMat, GMat, GMat)>

Source§

impl TupleExtern for Tuple<(GMat, GMat, GMat, GMat)>

Source§

impl TupleExtern for Tuple<(GMat, GScalar)>

Source§

impl TupleExtern for Tuple<(Point2i, Point2i)>

Source§

impl TupleExtern for Tuple<(Rect, i32)>

Source§

impl TupleExtern for Tuple<(UMat, u8)>

Source§

impl TupleExtern for Tuple<(i32, f32)>

Source§

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> Unpin for Tuple<T>
where T: Unpin,

§

impl<T> UnwindSafe for Tuple<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

Source§

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 unsafe in a general case as it leads to having non-exclusive mutable access to the internal data, but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.