yazi/yazi-scheduler/src/plugin/macros.rs

9 lines
204 B
Rust

macro_rules! impl_from_in {
($($variant:ident($type:ty)),* $(,)?) => {
$(
impl From<$type> for $crate::plugin::PluginIn {
fn from(value: $type) -> Self { Self::$variant(value) }
}
)*
};
}