Macro impl_from

Source
macro_rules! impl_from {
    ($(#[$meta:meta])* [ $($t:tt)* ]; $from:ty => $into:ty, $f:expr) => { ... };
    ($(#[$meta:meta])* $from:ty => $into:ty, $f:expr) => { ... };
}
Expand description

Fromを実装する。