first macro impl
This commit is contained in:
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user