fastnum2 0.3.5

fork of Fast decimal numbers library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use core::str::FromStr;

use crate::decimal::{Context, Decimal, ParseError};

impl<const N: usize> FromStr for Decimal<N> {
    type Err = ParseError;

    #[inline]
    fn from_str(s: &str) -> Result<Self, ParseError> {
        Decimal::from_str(s, Context::default())
    }
}