mirl 9.2.0

Miners Rust Lib - A massive collection of ever growing and changing functions, structs, and enums. Check the description for compatibility and toggleable features! (Most of the lib is controlled by flags/features so the lib can continue to be lightweight despite its size)
mod try_from_patch;
pub use try_from_patch::*;
mod from_patch;
pub use from_patch::*;

/// If a type is primitive, we can automatically derive [`FromPatch`] for any [`FromPatch`] implementations
pub trait IsPrimitive {}

/// Using this macro, every given object will automatically implement [`FromPatch`] for itself
///
/// `impl_from_patch_self!({struct1}, {struct2}, {enum})`
#[macro_export]
macro_rules! impl_from_patch_self {
    ($($t:ty),* $(,)?) => {
        $(
            // impl crate::extension::ImplFromPatchForSelf for $t {}

            impl $crate::extensions::FromPatch<$t> for $t {
                fn from_value(value: $t) -> Self {
                    value
                }
            }
        )*
    };
}

crate::impl_empty_trait!(IsPrimitive for u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize, f32, f64, bool, char);