Home
last modified time | relevance | path

Searched refs:map_res (Results 1 - 18 of 18) sorted by relevance

/third_party/rust/crates/nom/benchmarks/benches/
H A 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()
H A Darithmetic.rs11 combinator::map_res,
26 map_res(digit1, |digits| { in factor()
H A 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/
H A 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()
H A Dreborrow_fold.rs8 use nom::combinator::{map, map_res};
16 map_res(is_not(" \t\r\n"), str::from_utf8), in atom()
H A 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()
H A 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()
H A Darithmetic.rs6 combinator::map_res,
27 map_res(delimited(space, digit, space), FromStr::from_str), in factor()
H A 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()
H A Darithmetic_ast.rs10 combinator::{map, map_res},
72 map_res(delimited(multispace, digit, multispace), FromStr::from_str), in factor()
H A 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/
H A 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/
H A Ds_expression.rs11 combinator::{cut, map, map_res, opt},
123 map_res(digit1, |digit_str: &str| { in parse_num()
H A Dstring.rs17 use nom::combinator::{map, map_opt, map_res, value, verify};
48 // `map_res` takes the result of a parser and applies a function that returns in parse_unicode()
51 let parse_u32 = map_res(parse_delimited_hex, move |hex| u32::from_str_radix(hex, 16)); in parse_unicode()
53 // map_opt is like map_res, but it takes an Option instead of a Result. If in parse_unicode()
/third_party/mesa3d/src/microsoft/vulkan/
H A 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()
H A Ddzn_private.h287 ID3D12Resource *map_res; member
/third_party/rust/crates/nom/src/multi/
H A 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/rust/crates/nom/src/combinator/
H A Dmod.rs89 /// use nom::combinator::map_res;
92 /// let mut parse = map_res(digit1, |s: &str| s.parse::<u8>());
104 pub fn map_res<I: Clone, O1, O2, E: FromExternalError<I, E2>, E2, F, G>( in map_res() functions

Completed in 12 milliseconds