pub trait MorphologyExt {
type Output;
// Required methods
fn erode(&self, kernel: ArrayView2<'_, bool>) -> Self::Output;
fn erode_inplace(&mut self, kernel: ArrayView2<'_, bool>);
fn dilate(&self, kernel: ArrayView2<'_, bool>) -> Self::Output;
fn dilate_inplace(&mut self, kernel: ArrayView2<'_, bool>);
fn union(&self, other: &Self) -> Self::Output;
fn union_inplace(&mut self, other: &Self);
fn intersection(&self, other: &Self) -> Self::Output;
fn intersection_inplace(&mut self, other: &Self);
}
Required Associated Types§
Required Methods§
fn erode(&self, kernel: ArrayView2<'_, bool>) -> Self::Output
fn erode_inplace(&mut self, kernel: ArrayView2<'_, bool>)
fn dilate(&self, kernel: ArrayView2<'_, bool>) -> Self::Output
fn dilate_inplace(&mut self, kernel: ArrayView2<'_, bool>)
fn union(&self, other: &Self) -> Self::Output
fn union_inplace(&mut self, other: &Self)
fn intersection(&self, other: &Self) -> Self::Output
fn intersection_inplace(&mut self, other: &Self)
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.