Home
last modified time | relevance | path

Searched refs:map_res (Results 1 – 25 of 25) sorted by relevance

/third_party/rust/crates/nom/benchmarks/benches/
Dini.rs11 combinator::{map, map_res, opt},
20 map_res( in category()
27 let (i, key) = map_res(alphanumeric, str::from_utf8)(i)?; in key_value()
29 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
Darithmetic.rs11 combinator::map_res,
26 map_res(digit1, |digits| { in factor()
Djson.rs12 combinator::{map, map_opt, map_res, value, verify},
37 map_res(take(4usize), |s| u16::from_str_radix(s, 16))(input) in u16_hex()
69 map_res(anychar, |c| { in character()
/third_party/rust/crates/nom/tests/
Dfloat.rs4 use nom::combinator::{map, map_res, opt, recognize};
16 let float_str = map_res(float_bytes, str::from_utf8); in unsigned_float()
17 map_res(float_str, FromStr::from_str)(i) in unsigned_float()
Dini.rs6 combinator::{map, map_res, opt},
16 map_res( in category()
23 let (i, key) = map_res(alphanumeric, str::from_utf8)(i)?; in key_value()
25 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
Dreborrow_fold.rs8 use nom::combinator::{map, map_res};
16 map_res(is_not(" \t\r\n"), str::from_utf8), in atom()
Dcss.rs2 use nom::combinator::map_res;
22 map_res(take_while_m_n(2, 2, is_hex_digit), from_hex)(input) in hex_primary()
Darithmetic.rs6 combinator::map_res,
27 map_res(delimited(space, digit, space), FromStr::from_str), in factor()
Djson.rs7 combinator::{map, map_opt, map_res, value, verify},
32 map_res(take(4usize), |s| u16::from_str_radix(s, 16))(input) in u16_hex()
64 map_res(anychar, |c| { in character()
Darithmetic_ast.rs10 combinator::{map, map_res},
72 map_res(delimited(multispace, digit, multispace), FromStr::from_str), in factor()
Dmp4.rs6 combinator::{map, map_res},
247 map_res(take(4_usize), str::from_utf8)(input) in brand_name()
/third_party/rust/crates/nom/fuzz/fuzz_targets/
Dfuzz_arithmetic.rs12 combinator::{map, map_res, verify},
61 map_res(delimited(space, digit, space), FromStr::from_str), in factor()
/third_party/rust/crates/nom/examples/
Dstring.rs17 use nom::combinator::{map, map_opt, map_res, value, verify};
51 let parse_u32 = map_res(parse_delimited_hex, move |hex| u32::from_str_radix(hex, 16)); in parse_unicode()
Ds_expression.rs11 combinator::{cut, map, map_res, opt},
123 map_res(digit1, |digit_str: &str| { in parse_num()
/third_party/rust/crates/nom/src/multi/
Dtests.rs323 use crate::combinator::map_res; in number()
325 map_res(map_res(digit, str::from_utf8), FromStr::from_str)(i) in number()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_device.c2223 ID3D12Resource_Unmap(mem->map_res, 0, NULL); in dzn_device_memory_destroy()
2225 if (mem->map_res) in dzn_device_memory_destroy()
2226 ID3D12Resource_Release(mem->map_res); in dzn_device_memory_destroy()
2349 (void **)&mem->map_res); in dzn_device_memory_create()
2407 assert(mem->map_res); in dzn_MapMemory()
2412 if (FAILED(ID3D12Resource_Map(mem->map_res, 0, &range, &map))) in dzn_MapMemory()
2432 assert(mem->map_res); in dzn_UnmapMemory()
2433 ID3D12Resource_Unmap(mem->map_res, 0, NULL); in dzn_UnmapMemory()
Ddzn_private.h287 ID3D12Resource *map_res; member
/third_party/rust/crates/nom/doc/
Dnom_recipes.md195 combinator::{map_res, recognize},
202 map_res(
Dchoosing_a_combinator.md84 - [`map_res`](https://docs.rs/nom/latest/nom/combinator/fn.map_res.html): Maps a function returning…
Derror_management.md290 And there is also the `FromExternalError<I, E>` used by `map_res` to wrap
/third_party/rust/crates/nom/doc/archive/
DFAQ.md117 named!(multi<Vec<&str>>, many0!( map_res!(tag!( "abcd" ), str::from_utf8) ) );
Dupgrading_to_nom_2.md156 map_res!(flat_map!(take_s!(1), digit), FromStr::from_str))));
/third_party/rust/crates/nom/
DREADME.md48 combinator::map_res,
68 map_res(
DCHANGELOG.md318 `ContextError` for the `context` combinator, and `FromExternalError` for `map_res`.
344 - the `FromExternalError` allows wrapping the error returned by the function in the `map_res` combi…
1257 - `map_opt!` and `map_res!` had issues with argument order due to bad macros
1374 - `FlatMap`, `FlatpMapOpt` and `Functor` traits (replaced by `map!`, `map_opt!` and `map_res!`)
1438 - `map!`, `map_opt!` and `map_res!` to combine a parser with a normal function, transforming the in…
/third_party/rust/crates/nom/src/combinator/
Dmod.rs104 pub fn map_res<I: Clone, O1, O2, E: FromExternalError<I, E2>, E2, F, G>( in map_res() function