orx_v/dim/index_leq/
leq_d1.rs

1
2
3
4
5
6
7
8
9
10
11
use super::LeqIdx;
use crate::{IdxLeqD1, NVecCore, D1};

impl LeqIdx<D1> for IdxLeqD1 {
    fn in_leq_bounds<T>(self, vec: &impl NVecCore<D1, T>) -> bool {
        match self {
            Self::IdxD0(_) => true,
            Self::IdxD1([i]) => i < vec.core_num_children(),
        }
    }
}