pub trait GMatDescTraitConst {
Show 19 methods
// Required method
fn as_raw_GMatDesc(&self) -> *const c_void;
// Provided methods
fn depth(&self) -> i32 { ... }
fn chan(&self) -> i32 { ... }
fn size(&self) -> Size { ... }
fn planar(&self) -> bool { ... }
fn dims(&self) -> Vector<i32> { ... }
fn equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool> { ... }
fn not_equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool> { ... }
fn is_nd(&self) -> Result<bool> { ... }
fn can_describe(&self, mat: &impl MatTraitConst) -> Result<bool> { ... }
fn can_describe_1(&self, mat: &impl RMatTraitConst) -> Result<bool> { ... }
fn with_size_delta(&self, delta: Size) -> Result<GMatDesc> { ... }
fn with_size_delta_1(&self, dx: i32, dy: i32) -> Result<GMatDesc> { ... }
fn with_size(&self, sz: Size) -> Result<GMatDesc> { ... }
fn with_depth(&self, ddepth: i32) -> Result<GMatDesc> { ... }
fn with_type(&self, ddepth: i32, dchan: i32) -> Result<GMatDesc> { ... }
fn as_planar(&self) -> Result<GMatDesc> { ... }
fn as_planar_1(&self, planes: i32) -> Result<GMatDesc> { ... }
fn as_interleaved(&self) -> Result<GMatDesc> { ... }
}
Expand description
Constant methods for crate::gapi::GMatDesc
Required Methods§
fn as_raw_GMatDesc(&self) -> *const c_void
Provided Methods§
fn depth(&self) -> i32
fn chan(&self) -> i32
fn size(&self) -> Size
fn planar(&self) -> bool
fn dims(&self) -> Vector<i32>
fn equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool>
fn not_equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool>
fn is_nd(&self) -> Result<bool>
fn can_describe(&self, mat: &impl MatTraitConst) -> Result<bool>
fn can_describe_1(&self, mat: &impl RMatTraitConst) -> Result<bool>
fn with_size_delta(&self, delta: Size) -> Result<GMatDesc>
fn with_size_delta_1(&self, dx: i32, dy: i32) -> Result<GMatDesc>
fn with_size(&self, sz: Size) -> Result<GMatDesc>
fn with_depth(&self, ddepth: i32) -> Result<GMatDesc>
fn with_type(&self, ddepth: i32, dchan: i32) -> Result<GMatDesc>
fn as_planar(&self) -> Result<GMatDesc>
fn as_planar_1(&self, planes: i32) -> Result<GMatDesc>
fn as_interleaved(&self) -> Result<GMatDesc>
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.