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)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// u16
impl const TryFromPatch<u16> for i8 {
    fn try_from_value(v: u16) -> Option<Self> {
        Some(v as Self)
    }
}
impl const TryFromPatch<u16> for i16 {
    fn try_from_value(v: u16) -> Option<Self> {
        Some(v as Self)
    }
}
impl const TryFromPatch<u16> for u8 {
    fn try_from_value(v: u16) -> Option<Self> {
        Some(v as Self)
    }
}
use crate::extensions::TryFromPatch;