Skip to content

Commit 4b0783f

Browse files
committed
feat: Info::new_4
1 parent a772aea commit 4b0783f

File tree

1 file changed

+9
-0
lines changed
  • packages/frender-const-value/src

1 file changed

+9
-0
lines changed

packages/frender-const-value/src/input.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,13 @@ impl Info {
4242
this.0[0] = info_0;
4343
this
4444
}
45+
46+
pub const fn new_4(
47+
//
48+
info_array: [usize; 4],
49+
) -> Self {
50+
let mut this = Self::new();
51+
this.0 = info_array;
52+
this
53+
}
4554
}

0 commit comments

Comments
 (0)