[−][src]Struct opencv::core::Rect_
Fields
x: T
y: T
width: T
height: T
Methods
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 + PartialOrd + Sub<Output = T>,
[src]
T: ValidPointType + PartialOrd + Sub<Output = T>,
pub fn tl(&self) -> Point_<T> where
T: ValidPointType,
[src]
T: ValidPointType,
pub fn br(&self) -> Point_<T> where
T: ValidPointType + Add<Output = T>,
[src]
T: ValidPointType + Add<Output = T>,
pub fn size(&self) -> Size_<T> where
T: ValidSizeType,
[src]
T: ValidSizeType,
pub fn area(&self) -> T where
T: Mul<Output = T>,
[src]
T: Mul<Output = T>,
pub fn empty(&self) -> bool where
T: Zero + PartialOrd,
[src]
T: Zero + PartialOrd,
pub fn contains(&self, pt: Point_<T>) -> bool where
T: ValidPointType + Add<Output = T> + PartialOrd,
[src]
T: ValidPointType + Add<Output = T> + PartialOrd,
pub fn to<D: ValidRectType + NumCast>(&self) -> Option<Rect_<D>> where
T: ToPrimitive,
[src]
T: ToPrimitive,
Trait Implementations
impl<T: PartialEq + ValidRectType> PartialEq<Rect_<T>> for Rect_<T>
[src]
impl<T: Clone + ValidRectType> Clone for Rect_<T>
[src]
fn clone(&self) -> 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]
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
type Output = Rect_<R>
The resulting type after applying the +
operator.
fn add(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(self, rhs: Size_<S>) -> Self::Output
[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(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(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<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> Unpin for Rect_<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Rect_<T> where
T: Sync,
T: Sync,
impl<T> Send for Rect_<T> where
T: Send,
T: Send,
impl<T> RefUnwindSafe for Rect_<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> UnwindSafe for Rect_<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,