Skip to main content

fastnum/decimal/udec/impls/
from_str.rs

1use core::str::FromStr;
2
3use crate::decimal::{Context, ParseError, UnsignedDecimal};
4
5impl<const N: usize> FromStr for UnsignedDecimal<N> {
6    type Err = ParseError;
7
8    #[inline]
9    fn from_str(s: &str) -> Result<Self, ParseError> {
10        Self::from_str(s, Context::default())
11    }
12}