Open
Description
Component
sol-types, sol! macro, syn-solidity
Describe the feature you would like
On UDT types, currently there is a impl that converts to and from the underlying.
/// Convert from the underlying value type.
#[inline]
pub const fn from(value: #underlying_rust) -> Self {
Self(value)
}
/// Return the underlying value.
#[inline]
pub const fn into(self) -> #underlying_rust {
self.0
}
However these functions conflict with regular into
and from
trait impl's. Currently this will just render them useless (the impl on the struct will always override the trait impls). I recommend changing the naming to, from_underlying
and into_underlying
Additional context
No response
Activity