Home
last modified time | relevance | path

Searched refs:parse_to (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/nom/tests/
Dissues.rs177 named!(f1<&str, u16>, parse_to!(u16)); in issue_721()
178 named!(f2<&str, String>, parse_to!(String)); in issue_721()
208 parse_to!("ab", usize).unwrap_err() in issue_752()
Djson.rs20 named!(float<f32>, flat_map!(recognize_float, parse_to!(f32)));
/external/iptables/extensions/
Dlibip6t_SNAT.c50 parse_to(const char *orig_arg, int portok, struct nf_nat_range *range) in parse_to() function
172 parse_to(cb->arg, portok, range); in SNAT_parse()
Dlibipt_SNAT.c70 parse_to(const char *orig_arg, int portok, struct ipt_natinfo *info) in parse_to() function
179 *cb->target = parse_to(cb->arg, portok, info); in SNAT_parse()
Dlibip6t_DNAT.c56 parse_to(const char *orig_arg, int portok, struct nf_nat_range2 *range, int rev) in parse_to() function
192 parse_to(cb->arg, portok, range, rev); in _DNAT_parse()
Dlibipt_DNAT.c76 parse_to(const char *orig_arg, int portok, struct ipt_natinfo *info) in parse_to() function
185 *cb->target = parse_to(cb->arg, portok, info); in DNAT_parse()
/external/rust/crates/nom/src/combinator/
Dmacros.rs618 macro_rules! parse_to ( macro
630 let res: Option<$t> = ($i).parse_to();
1184 fn parse_to() { in parse_to() function
1185 let res: IResult<_, _, (&str, ErrorKind)> = parse_to!("ab", usize); in parse_to()
1195 let res: IResult<_, _, (&str, ErrorKind)> = parse_to!("42", usize); in parse_to()
/external/rust/crates/nom/src/
Dtraits.rs872 fn parse_to(&self) -> Option<R>; in parse_to() method
876 fn parse_to(&self) -> Option<R> { in parse_to() method
882 fn parse_to(&self) -> Option<R> { in parse_to() method
/external/rust/crates/nom/src/number/
Dcomplete.rs803 Ok((i, s)) => match s.parse_to() { in float()
870 Ok((i, s)) => match s.parse_to() { in double()
Dstreaming.rs800 Ok((i, s)) => match s.parse_to() { in float()
873 Ok((i, s)) => match s.parse_to() { in double()
/external/rust/crates/nom/
DCHANGELOG.md220 - `parse_to` has its own error code now
274 - @lowenheim for `parse_to!` fixes
328 - `parse_to!` now consumes its input
519 - `parse_to!` will use the `parse` method from `FromStr` to parse a value. It will automatically tr…