Struct cv::core::Size2i[][src]

#[repr(C)]pub struct Size2i {
    pub width: c_int,
    pub height: c_int,
}

Size2i struct is used for specifying the size of an image or rectangle with integer dimensions.

Fields

width: c_int

width

height: c_int

height

Implementations

impl Size2i[src]

pub fn new(width: c_int, height: c_int) -> Self[src]

Creates a new Size2i object with width and height

Trait Implementations

impl Clone for Size2i[src]

impl Copy for Size2i[src]

impl Debug for Size2i[src]

impl Default for Size2i[src]

Auto Trait Implementations

impl RefUnwindSafe for Size2i

impl Send for Size2i

impl Sync for Size2i

impl Unpin for Size2i

impl UnwindSafe for Size2i

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.