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