pub trait Gray:
Copy
+ Send
+ Sync
+ Sealed {
// Required method
fn to_gray(self) -> f64;
// Provided method
fn as_f64_slice(image: &[Self]) -> Option<&[f64]> { ... }
}Expand description
A gray sample the detector can read.
Required Methods§
Provided Methods§
Sourcefn as_f64_slice(image: &[Self]) -> Option<&[f64]>
fn as_f64_slice(image: &[Self]) -> Option<&[f64]>
The buffer itself when it already holds f64 grays.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".