Closed ehaydenr closed 1 year ago
Doesn't make a huge difference to me. I find the From
impl natural and this is exactly how it's done in the private StreamId type https://github.com/hyperium/h2/blob/756e2524ac53c0cf9810efcba0b92171b7d80e42/src/frame/stream_id.rs#L86 Happy to change if desired.
Personally, I don't like the hidden from statements but we could just add a get_u32
that is clear and verbose.
Should it be a
From
impl or aget() -> u32
?