[−][src]Struct opencv::core::Rect_
Fields
x: T
y: T
width: T
height: 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]
T: ValidPointType + ValidSizeType,
pub fn from_points(pt1: Point_<T>, pt2: Point_<T>) -> Self where
T: ValidPointType,
[src]
T: ValidPointType,
pub fn tl(&self) -> Point_<T> where
T: ValidPointType,
[src]
T: ValidPointType,
pub fn br(&self) -> Point_<T> where
T: ValidPointType,
[src]
T: ValidPointType,
pub fn size(&self) -> Size_<T> where
T: ValidSizeType,
[src]
T: ValidSizeType,
pub fn area(&self) -> T
[src]
pub fn empty(&self) -> bool
[src]
pub fn contains(&self, pt: Point_<T>) -> bool where
T: ValidPointType,
[src]
T: ValidPointType,
pub fn to<D: ValidRectType + NumCast>(&self) -> Option<Rect_<D>> where
T: ToPrimitive,
[src]
T: ToPrimitive,
Trait Implementations
impl<P, R> Add<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
type Output = Rect_<R>
The resulting type after applying the +
operator.
fn add(mut self: Self, rhs: Point_<P>) -> Self::Output
[src]
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(mut self: Self, rhs: Size_<S>) -> Self::Output
[src]
impl<P, R> AddAssign<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
fn add_assign(&mut self, rhs: Point_<P>)
[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: ValidRectType> BitAnd<Rect_<T>> for Rect_<T>
[src]
type Output = Rect_<T>
The resulting type after applying the &
operator.
fn bitand(mut self: Self, rhs: Self) -> Self::Output
[src]
impl<T: ValidRectType> BitAndAssign<Rect_<T>> for Rect_<T>
[src]
fn bitand_assign(&mut self, rhs: Self)
[src]
impl<T: ValidRectType> BitOr<Rect_<T>> for Rect_<T>
[src]
type Output = Rect_<T>
The resulting type after applying the |
operator.
fn bitor(mut self: Self, rhs: Self) -> Self::Output
[src]
impl<T: ValidRectType> BitOrAssign<Rect_<T>> for Rect_<T>
[src]
fn bitor_assign(&mut self, rhs: Self)
[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]
fn partial_cmp(&self, other: &Rect_<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Rect_<T>) -> bool
[src]
fn le(&self, other: &Rect_<T>) -> bool
[src]
fn gt(&self, other: &Rect_<T>) -> bool
[src]
fn ge(&self, other: &Rect_<T>) -> bool
[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]
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
type Output = Rect_<R>
The resulting type after applying the -
operator.
fn sub(mut self: Self, rhs: Point_<P>) -> Self::Output
[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(mut self: Self, rhs: Size_<S>) -> Self::Output
[src]
impl<P, R> SubAssign<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
fn sub_assign(&mut self, rhs: Point_<P>)
[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]
Auto Trait Implementations
impl<T> RefUnwindSafe for Rect_<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Rect_<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Rect_<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Rect_<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Rect_<T> where
T: UnwindSafe,
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,