Struct opencv::core::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 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> !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> 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 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
source§

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

§

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>,

§

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.