Also mark these methods as const. Because <u32 as From<u16>>::from is not available in const contexts, I had to cast u16 as u32. I try to avoid casts as much as I can, but in this case a cast seems unavoidable. Casting u16 as u32 should be safe on all architectures. |
||
---|---|---|
.. | ||
absolute.rs | ||
mod.rs | ||
relative.rs |