first macro impl

This commit is contained in:
2022-11-27 18:21:50 +01:00
parent 7062c12ef0
commit 9b37c63280
7 changed files with 135 additions and 5 deletions

View File

@ -25,12 +25,16 @@ impl ResultU16 {
#[derive(Debug)]
pub struct ResultU16Ext {
pub name: &'static str,
pub result: ResultU16,
pub result: &'static ResultU16,
pub info: &'static str,
}
impl ResultU16Ext {
pub const fn const_new(name: &'static str, result: ResultU16, info: &'static str) -> Self {
pub const fn const_new(
name: &'static str,
result: &'static ResultU16,
info: &'static str,
) -> Self {
Self { name, result, info }
}
}