padded_number/
from_str.rs

1use std::str::FromStr;
2
3use crate::*;
4
5impl<const A: u8, const B: u8> FromStr for PaddedNumber<A, B> {
6    type Err = ParsePaddedNumberError;
7
8    fn from_str(str: &str) -> Result<Self, Self::Err> {
9        Self::try_new(str)
10    }
11}