[][src]Struct opencv::core::Size_

#[repr(C)]
pub struct Size_<T: ValidSizeType> {
    pub width: T,
    pub height: T,
}

Fields

width: Theight: T

Methods

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]

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]

Trait Implementations

impl<S, R> Add<Size_<S>> for Rect_<R> where
    S: ValidSizeType,
    R: ValidRectType + AddAssign<S>, 
[src]

type Output = Rect_<R>

The resulting type after applying the + operator.

impl<T> Add<Size_<T>> for Size_<T> where
    T: ValidSizeType + AddAssign
[src]

type Output = Size_<T>

The resulting type after applying the + operator.

impl<S, R> AddAssign<Size_<S>> for Rect_<R> where
    S: ValidSizeType,
    R: ValidRectType + AddAssign<S>, 
[src]

impl<T> AddAssign<Size_<T>> for Size_<T> where
    T: ValidSizeType + AddAssign
[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]

type Output = Size_<T>

The resulting type after applying the / operator.

impl<T> DivAssign<T> for Size_<T> where
    T: ValidSizeType + DivAssign
[src]

impl<T> Mul<T> for Size_<T> where
    T: ValidSizeType + MulAssign
[src]

type Output = Size_<T>

The resulting type after applying the * operator.

impl<T> MulAssign<T> for Size_<T> where
    T: ValidSizeType + MulAssign
[src]

impl<T: PartialEq + ValidSizeType> PartialEq<Size_<T>> for Size_<T>[src]

impl<T: PartialOrd + ValidSizeType> PartialOrd<Size_<T>> for Size_<T>[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]

type Output = Rect_<R>

The resulting type after applying the - operator.

impl<T> Sub<Size_<T>> for Size_<T> where
    T: ValidSizeType + SubAssign
[src]

type Output = Size_<T>

The resulting type after applying the - operator.

impl<S, R> SubAssign<Size_<S>> for Rect_<R> where
    S: ValidSizeType,
    R: ValidRectType + SubAssign<S>, 
[src]

impl<T> SubAssign<Size_<T>> for Size_<T> where
    T: ValidSizeType + SubAssign
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.