[][src]Struct opencv::core::Rect_

#[repr(C)]
pub struct Rect_<T: ValidRectType> { pub x: T, pub y: T, pub width: T, pub height: T, }

Fields

x: Ty: Twidth: Theight: T

Methods

impl<T: ValidRectType> Rect_<T>[src]

pub fn new(x: T, y: T, width: T, height: T) -> Self[src]

impl<T: ValidRectType + ValidPointType> Rect_<T>[src]

pub fn tl(&self) -> Point_<T>[src]

impl<T: ValidRectType + ValidPointType + Add<T, Output = T>> Rect_<T>[src]

pub fn br(&self) -> Point_<T>[src]

impl<T: ValidRectType + ValidSizeType> Rect_<T>[src]

pub fn size(&self) -> Size_<T>[src]

impl<T: ValidRectType + Mul<T, Output = T>> Rect_<T>[src]

pub fn area(&self) -> T[src]

impl<T: ValidRectType + Zero + PartialOrd> Rect_<T>[src]

pub fn empty(&self) -> bool[src]

impl<T: ValidRectType + ValidPointType + Add<T, Output = T> + PartialOrd> Rect_<T>[src]

pub fn contains(&self, pt: Point_<T>) -> bool[src]

Trait Implementations

impl<T: PartialEq + ValidRectType> PartialEq<Rect_<T>> for Rect_<T>[src]

impl<T: Clone + ValidRectType> Clone for Rect_<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: ValidRectType + Default> Default for Rect_<T>[src]

impl<T: Copy + ValidRectType> Copy for Rect_<T>[src]

impl<T: Debug + ValidRectType> Debug for Rect_<T>[src]

impl<P, R> Add<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + AddAssign<P>, 
[src]

type Output = Rect_<R>

The resulting type after applying the + operator.

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<P, R> Sub<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + SubAssign<P>, 
[src]

type Output = Rect_<R>

The resulting type after applying the - operator.

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<P, R> AddAssign<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + AddAssign<P>, 
[src]

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

impl<P, R> SubAssign<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + SubAssign<P>, 
[src]

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

Auto Trait Implementations

impl<T> Send for Rect_<T> where
    T: Send

impl<T> Sync for Rect_<T> where
    T: Sync

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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