Add support for directly defining unsigned values.
This commit is contained in:
@@ -84,6 +84,12 @@ macro_rules! generate_base
|
|||||||
f.write_str("}")
|
f.write_str("}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<[u64; $size]> for $name {
|
||||||
|
fn from(x: [u64; $size]) -> $name {
|
||||||
|
$name{ value: x }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user