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
I'm not sure whether or not this is meant to work already. It is almost possible with:
impl fmt::Showfor fmt::RadixFmt<MyType, fmt::Radix>{fnfmt(&self,formatter:&mut fmt::Formatter) -> fmt::Result{let fmt::RadixFmt(ref x, radix) = *self;let base = radix.base;// This doesn't work because base is private// ...}}
It doesn't seem possible to get the actual base out, due to its privacy. It used to be possible to provide a ToStrRadix implementation for a user-defined type, and it would be really nice to be able to use the fmt::radix method.
The text was updated successfully, but these errors were encountered:
I'm not sure whether or not this is meant to work already. It is almost possible with:
It doesn't seem possible to get the actual base out, due to its privacy. It used to be possible to provide a ToStrRadix implementation for a user-defined type, and it would be really nice to be able to use the
fmt::radix
method.The text was updated successfully, but these errors were encountered: