bitcoin_units

Macro impl_tryfrom_str_from_int_infallible

source
macro_rules! impl_tryfrom_str_from_int_infallible {
    ($($from:ty, $to:ident, $inner:ident, $fn:ident);*) => { ... };
}
Available on crate feature alloc only.
Expand description

Implements TryFrom<$from> for $to using parse::int, mapping the output using infallible conversion function fn.