mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
9 lines
204 B
Rust
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) }
|
|
}
|
|
)*
|
|
};
|
|
}
|