MatSizeTraitConst

Trait MatSizeTraitConst 

Source
pub trait MatSizeTraitConst {
    // Required method
    fn as_raw_MatSize(&self) -> *const c_void;

    // Provided methods
    fn p(&self) -> *const i32 { ... }
    fn dims(&self) -> i32 { ... }
    fn apply(&self) -> Result<Size> { ... }
    fn get(&self, i: i32) -> Result<i32> { ... }
    fn to_xconst_i32(&self) -> *const i32 { ... }
    fn equals(&self, sz: &impl MatSizeTraitConst) -> bool { ... }
    fn not_equals(&self, sz: &impl MatSizeTraitConst) -> bool { ... }
}
Expand description

Constant methods for core::MatSize

Required Methods§

Provided Methods§

Source

fn p(&self) -> *const i32

Source

fn dims(&self) -> i32

Source

fn apply(&self) -> Result<Size>

Source

fn get(&self, i: i32) -> Result<i32>

Source

fn to_xconst_i32(&self) -> *const i32

Source

fn equals(&self, sz: &impl MatSizeTraitConst) -> bool

Source

fn not_equals(&self, sz: &impl MatSizeTraitConst) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§