[−][src]Struct opencv::core::Size_
Fields
width: T
height: T
Implementations
impl<T: ValidSizeType> Size_<T>
[src]
pub fn new(width: T, height: T) -> Self
[src]
pub fn from_point(pt: Point_<T>) -> Self where
T: ValidPointType,
[src]
T: ValidPointType,
pub fn area(self) -> T
[src]
pub fn empty(self) -> bool
[src]
pub fn to<D: ValidSizeType + NumCast>(self) -> Option<Size_<D>> where
T: ToPrimitive,
[src]
T: ToPrimitive,
Trait Implementations
impl<S, R> Add<Size_<S>> for Rect_<R> where
S: ValidSizeType,
R: ValidRectType + AddAssign<S>,
[src]
S: ValidSizeType,
R: ValidRectType + AddAssign<S>,
type Output = Rect_<R>
The resulting type after applying the +
operator.
fn add(self, rhs: Size_<S>) -> Self::Output
[src]
impl<T> Add<Size_<T>> for Size_<T> where
T: ValidSizeType + AddAssign,
[src]
T: ValidSizeType + AddAssign,
type Output = Size_<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Size_<T>) -> Self::Output
[src]
impl<S, R> AddAssign<Size_<S>> for Rect_<R> where
S: ValidSizeType,
R: ValidRectType + AddAssign<S>,
[src]
S: ValidSizeType,
R: ValidRectType + AddAssign<S>,
fn add_assign(&mut self, rhs: Size_<S>)
[src]
impl<T> AddAssign<Size_<T>> for Size_<T> where
T: ValidSizeType + AddAssign,
[src]
T: ValidSizeType + AddAssign,
fn add_assign(&mut self, rhs: Size_<T>)
[src]
impl<T: Clone + ValidSizeType> Clone for Size_<T>
[src]
impl<T: Copy + ValidSizeType> Copy for Size_<T>
[src]
impl<T: Debug + ValidSizeType> Debug for Size_<T>
[src]
impl<T: Default + ValidSizeType> Default for Size_<T>
[src]
impl<T> Div<T> for Size_<T> where
T: ValidSizeType + DivAssign,
[src]
T: ValidSizeType + DivAssign,
type Output = Size_<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> DivAssign<T> for Size_<T> where
T: ValidSizeType + DivAssign,
[src]
T: ValidSizeType + DivAssign,
fn div_assign(&mut self, rhs: T)
[src]
impl<T> Mul<T> for Size_<T> where
T: ValidSizeType + MulAssign,
[src]
T: ValidSizeType + MulAssign,
type Output = Size_<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> MulAssign<T> for Size_<T> where
T: ValidSizeType + MulAssign,
[src]
T: ValidSizeType + MulAssign,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T: PartialEq + ValidSizeType> PartialEq<Size_<T>> for Size_<T>
[src]
impl<T: PartialOrd + ValidSizeType> PartialOrd<Size_<T>> for Size_<T>
[src]
fn partial_cmp(&self, other: &Size_<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Size_<T>) -> bool
[src]
fn le(&self, other: &Size_<T>) -> bool
[src]
fn gt(&self, other: &Size_<T>) -> bool
[src]
fn ge(&self, other: &Size_<T>) -> bool
[src]
impl<T: ValidSizeType> StructuralPartialEq for Size_<T>
[src]
impl<S, R> Sub<Size_<S>> for Rect_<R> where
S: ValidSizeType,
R: ValidRectType + SubAssign<S>,
[src]
S: ValidSizeType,
R: ValidRectType + SubAssign<S>,
type Output = Rect_<R>
The resulting type after applying the -
operator.
fn sub(self, rhs: Size_<S>) -> Self::Output
[src]
impl<T> Sub<Size_<T>> for Size_<T> where
T: ValidSizeType + SubAssign,
[src]
T: ValidSizeType + SubAssign,
type Output = Size_<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Size_<T>) -> Self::Output
[src]
impl<S, R> SubAssign<Size_<S>> for Rect_<R> where
S: ValidSizeType,
R: ValidRectType + SubAssign<S>,
[src]
S: ValidSizeType,
R: ValidRectType + SubAssign<S>,
fn sub_assign(&mut self, rhs: Size_<S>)
[src]
impl<T> SubAssign<Size_<T>> for Size_<T> where
T: ValidSizeType + SubAssign,
[src]
T: ValidSizeType + SubAssign,
fn sub_assign(&mut self, rhs: Size_<T>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Size_<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Size_<T> where
T: Send,
T: Send,
impl<T> Sync for Size_<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Size_<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Size_<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,