#[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 for Size_<T>
impl<T: AddAssign> AddAssign 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: PartialOrd> PartialOrd for Size_<T>
impl<T: PartialOrd> PartialOrd for Size_<T>
Source§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 for Size_<T>
impl<T: SubAssign> SubAssign 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> StructuralPartialEq for Size_<T>
Auto Trait Implementations§
impl<T> Freeze for Size_<T>where
T: Freeze,
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