mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
fix remaining issues before fixing tests
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user