orx_v/dim/index_leq/
leq_idx.rs

1
2
3
4
5
6
7
use crate::{Dim, NVecCore};

/// Union of indices that are less than or equal to dimension `D`.
pub trait LeqIdx<D: Dim>: From<D::Idx> {
    /// Checks whether or not this index is in bounds for the given `vec`.
    fn in_leq_bounds<T>(self, vec: &impl NVecCore<D, T>) -> bool;
}