#[repr(C)]pub struct Size_<T> {
pub width: T,
pub height: T,
}
Expand description
Fields§
§width: T
§height: T
Implementations§
Trait Implementations§
source§impl<S, R: AddAssign<S>> AddAssign<Size_<S>> for Rect_<R>
impl<S, R: AddAssign<S>> AddAssign<Size_<S>> for Rect_<R>
source§fn add_assign(&mut self, rhs: Size_<S>)
fn add_assign(&mut self, rhs: Size_<S>)
Performs the
+=
operation. Read moresource§impl<T: AddAssign> AddAssign<Size_<T>> for Size_<T>
impl<T: AddAssign> AddAssign<Size_<T>> for Size_<T>
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl<T: DataType> DataType for Size_<T>
impl<T: DataType> DataType for Size_<T>
source§fn opencv_depth() -> i32
fn opencv_depth() -> i32
The shape of bytes occupied by the single layer/channel of the element. E.g. for an 8-bit BGR
image it’s
CV_8U
because a single channel for a pixel is unsigned 8 bits. You should use one
of the depth constants for this like CV_8U
, CV_8S
, CV_32F
, etc.source§fn opencv_channels() -> i32
fn opencv_channels() -> i32
Amount of layers/channels per element. E.g. for an 8-bit BGR image it’s 3 because one pixel
consists of 3 channels: B, G and R.
source§fn opencv_type() -> i32
fn opencv_type() -> i32
OpenCV value for this type as produced by
CV_MAKETYPE()
functionsource§impl<T: DivAssign + Copy> DivAssign<T> for Size_<T>
impl<T: DivAssign + Copy> DivAssign<T> for Size_<T>
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T: MulAssign + Copy> MulAssign<T> for Size_<T>
impl<T: MulAssign + Copy> MulAssign<T> for Size_<T>
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T: PartialEq> PartialEq<Size_<T>> for Size_<T>
impl<T: PartialEq> PartialEq<Size_<T>> for Size_<T>
source§impl<T: PartialOrd> PartialOrd<Size_<T>> for Size_<T>
impl<T: PartialOrd> PartialOrd<Size_<T>> for Size_<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<S, R: SubAssign<S>> SubAssign<Size_<S>> for Rect_<R>
impl<S, R: SubAssign<S>> SubAssign<Size_<S>> for Rect_<R>
source§fn sub_assign(&mut self, rhs: Size_<S>)
fn sub_assign(&mut self, rhs: Size_<S>)
Performs the
-=
operation. Read moresource§impl<T: SubAssign> SubAssign<Size_<T>> for Size_<T>
impl<T: SubAssign> SubAssign<Size_<T>> for Size_<T>
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Size_<T>
impl<T: Eq> Eq for Size_<T>
impl<T> StructuralEq for Size_<T>
impl<T> StructuralPartialEq for Size_<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Size_<T>where T: RefUnwindSafe,
impl<T> Send for Size_<T>where T: Send,
impl<T> Sync for Size_<T>where T: Sync,
impl<T> Unpin for Size_<T>where T: Unpin,
impl<T> UnwindSafe for Size_<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