fix remaining issues before fixing tests

This commit is contained in:
Pro7ech
2025-10-18 11:59:50 +02:00
parent a282e88126
commit 0b8dcb1f16
34 changed files with 224 additions and 160 deletions

View File

@@ -28,6 +28,8 @@ pub trait TakeSlice {
fn take_slice<T>(&mut self, len: usize) -> (&mut [T], &mut Self);
}
impl<B: Backend> ScratchTakeBasic for Scratch<B> where Self: TakeSlice {}
pub trait ScratchTakeBasic
where
Self: TakeSlice,

View File

@@ -1,5 +1,5 @@
use crate::{
api::ModuleNew,
api::{ModuleN, ModuleNew},
layouts::{Backend, Module},
oep::ModuleNewImpl,
};
@@ -12,3 +12,12 @@ where
B::new_impl(n)
}
}
impl<B> ModuleN for Module<B>
where
B: Backend,
{
fn n(&self) -> usize {
self.n()
}
}