use std::{marker, num::NonZero};
use crate::depot::index::{bitmap, bitmap::entry::Row};
pub(in crate::depot::index::bitmap) struct Found;
impl<'a, 'l, W: bitmap::Width> Row<&'l bitmap::Level<'a, W>, (), Found, W> {
pub(in crate::depot::index::bitmap) const unsafe fn found(
level: &'l bitmap::Level<'a, W>,
index: usize,
) -> Self {
Self {
source: level,
index: unsafe { NonZero::new_unchecked(index as u32 + 1) },
plane: (),
phase: marker::PhantomData,
}
}
}