Implement a reverse polish calculator for calldata arithmetic

This commit is contained in:
Omar Abdulla
2025-07-24 17:25:36 +03:00
parent aabcd06254
commit 772c5f79fc
4 changed files with 392 additions and 108 deletions
@@ -48,11 +48,7 @@ macro_rules! define_wrapper_type {
$vis struct $ident($ty);
impl $ident {
pub fn new(value: $ty) -> Self {
Self(value)
}
pub fn new_from<T: Into<$ty>>(value: T) -> Self {
pub fn new(value: impl Into<$ty>) -> Self {
Self(value.into())
}