pub trait Banded: Float {
// Provided method
fn banded(
xs: &[Self],
lo: Self,
hi: Self,
band: Band,
out: &mut [MaybeUninit<bool>],
) { ... }
}Expand description
The float types that against compares with one number to give Booleans. The default writes them through in_band. Wasm’s f64 and f32 override it in narrowed.
Provided Methods§
Sourcefn banded(
xs: &[Self],
lo: Self,
hi: Self,
band: Band,
out: &mut [MaybeUninit<bool>],
)
fn banded( xs: &[Self], lo: Self, hi: Self, band: Band, out: &mut [MaybeUninit<bool>], )
Writes into out whether each item of xs lies in band against the range lo to hi.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl Banded for f32
Available on not (WebAssembly and target feature
simd128).impl Banded for f64
Available on not (WebAssembly and target feature
simd128).