[][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

Implementations

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

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

pub fn from_point_size(pt: Point_<T>, sz: Size_<T>) -> Self where
    T: ValidPointType + ValidSizeType
[src]

pub fn from_points(pt1: Point_<T>, pt2: Point_<T>) -> Self where
    T: ValidPointType
[src]

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

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

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

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

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

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

pub fn to<D: ValidRectType + NumCast>(&self) -> Option<Rect_<D>> where
    T: ToPrimitive
[src]

Trait Implementations

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> 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<T: ValidRectType> BitAnd<Rect_<T>> for Rect_<T>[src]

type Output = Rect_<T>

The resulting type after applying the & operator.

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

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

type Output = Rect_<T>

The resulting type after applying the | operator.

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

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

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

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

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

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

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

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

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> 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> RefUnwindSafe for Rect_<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Rect_<T> where
    T: Send
[src]

impl<T> Sync for Rect_<T> where
    T: Sync
[src]

impl<T> Unpin for Rect_<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Rect_<T> where
    T: UnwindSafe
[src]

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.