Lines Matching refs:N
204 /// struct Builder<const N: usize>;
206 /// impl<const N: usize> Builder<N> {
210 /// const fn create(module_name: &'static kernel::str::CStr) -> firmware::ModInfoBuilder<N> {
269 /// The const generic `N` as well as the `module_name` parameter of [`ModInfoBuilder::new`] is an
271 pub struct ModInfoBuilder<const N: usize> {
272 buf: [u8; N],
277 impl<const N: usize> ModInfoBuilder<N> {
281 buf: [0; N],
290 if N == 0 {
296 if self.n < N {
316 /// # const fn no_run<const N: usize>(builder: ModInfoBuilder<N>) {
327 if N != 0 && self.n == 0 {
341 if N != 0 {
365 pub const fn build(self) -> [u8; N] {
369 if this.n == N {