/// Parses the given string as dice terms. Any unknown values are skipped.
Parses the given string as dice terms. Any unknown values are skipped.
Parses the given string as dice terms . Any unknown values are skipped .
pub fn parse(s: &str) -> Result<Roll, &'static str> {
        let rolls = DiceTerm::parse(s)?
            .into_iter()
            .map(|term| SingleRoll {
                rolls: term.roll(),
                term,
            })
            .collect();
        Ok(Roll { rolls })
    }
pub fn parse ( s : & str ) -> Result < Roll , & ' static str > { let rolls = DiceTerm :: parse ( s ) ? . into_iter ( ) . map ( | term | SingleRoll { rolls : term . roll ( ) , term , } ) . collect ( ) ; Ok ( Roll { rolls } ) }
Parses the given string as dice terms.
Parses the given string as dice terms .
s
&str