You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to deref a Sectors, Datablocks, or MetaBlocks is a hatch for getting around additional (mostly arithmetic) traits being unimplemented for these newtypes. It may be better to add as_u64() or similar to these, to allow explicit conversion, instead of allowing these to be "unwrapped" with a *
The text was updated successfully, but these errors were encountered:
We can easily add more arithmetic traits. There is no fundamental reason why Bytes has fewer arithmetic traits than Sectors. Ideally, it should be at the point where the only reason for a deref is to pass it as a raw string to an ioct, or something like that.
Being able to deref a
Sectors
,Datablocks
, orMetaBlocks
is a hatch for getting around additional (mostly arithmetic) traits being unimplemented for these newtypes. It may be better to addas_u64()
or similar to these, to allow explicit conversion, instead of allowing these to be "unwrapped" with a*
The text was updated successfully, but these errors were encountered: