/external/rust/crates/futures/tests/ |
D | io_read_to_string.rs | 2 fn read_to_string() { in read_to_string() function 8 assert_eq!(block_on(c.read_to_string(&mut v)).unwrap(), 0); in read_to_string() 13 assert_eq!(block_on(c.read_to_string(&mut v)).unwrap(), 1); in read_to_string() 18 assert!(block_on(c.read_to_string(&mut v)).is_err()); in read_to_string() 46 assert_eq!(run(buf.read_to_string(&mut v)).unwrap(), 5); in interleave_pending()
|
/external/rust/crates/tokio/tests/ |
D | io_read_to_string.rs | 10 async fn read_to_string() { in read_to_string() function 14 let n = assert_ok!(rd.read_to_string(&mut buf).await); in read_to_string() 25 match AsyncReadExt::read_to_string(&mut data.as_slice(), &mut s).await { in to_string_does_not_truncate_on_utf8_error() 42 match AsyncReadExt::read_to_string(&mut mock, &mut s).await { in to_string_does_not_truncate_on_io_error() 57 let len = AsyncReadExt::read_to_string(&mut data.as_slice(), &mut s) in to_string_appends()
|
D | fs_link.rs | 30 reader.read_to_string(&mut content).unwrap(); in test_hard_link() 58 reader.read_to_string(&mut content).unwrap(); in test_symlink()
|
D | process_kill_on_drop.rs | 39 assert_ok!(out.read_to_string(&mut msg).await); in kill_on_drop()
|
/external/rust/crates/tokio/src/io/util/ |
D | async_read_ext.rs | 12 use crate::io::util::read_to_string::{read_to_string, ReadToString}; 1068 fn read_to_string<'a>(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self> 1072 read_to_string(self, dst)
|
/external/rust/crates/unicode-normalization/benches/ |
D | bench.rs | 86 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfc_long() 92 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfd_long() 108 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfkc_long() 114 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfkd_long()
|
/external/rust/crates/tokio/src/fs/ |
D | mod.rs | 60 mod read_to_string; module 61 pub use self::read_to_string::read_to_string;
|
D | read_to_string.rs | 23 pub async fn read_to_string(path: impl AsRef<Path>) -> io::Result<String> { in read_to_string() function 25 asyncify(move || std::fs::read_to_string(path)).await in read_to_string()
|
/external/rust/crates/flate2/src/gz/ |
D | mod.rs | 270 d.read_to_string(&mut s).unwrap(); in roundtrip() 280 d.read_to_string(&mut s).unwrap(); in roundtrip_zero() 334 d.read_to_string(&mut s).unwrap(); in keep_reading_after_end() 336 d.read_to_string(&mut s).unwrap(); in keep_reading_after_end()
|
/external/rust/cxx/gen/src/ |
D | mod.rs | 79 let source = match read_to_string(path) { in generate_from_path() 89 fn read_to_string(path: &Path) -> Result<String> { in read_to_string() function
|
/external/rust/crates/futures-util/src/io/ |
D | mod.rs | 113 mod read_to_string; module 114 pub use self::read_to_string::ReadToString; 318 fn read_to_string<'a>( in read_to_string() method
|
D | allow_std.rs | 118 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() function 119 self.0.read_to_string(buf) in read_to_string()
|
/external/rust/crates/nix/test/ |
D | test_sendfile.rs | 81 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_freebsd() 126 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_darwin()
|
/external/rust/crates/regex/examples/ |
D | shootout-regex-dna-replace.rs | 14 io::stdin().read_to_string(&mut seq).unwrap(); in main()
|
/external/rust/crates/flate2/tests/ |
D | early-flush.rs | 18 r.read_to_string(&mut s).unwrap(); in smoke()
|
/external/rust/crates/syn/benches/ |
D | file.rs | 27 let content = fs::read_to_string(FILE).unwrap(); in parse_file()
|
/external/rust/crates/flate2/examples/ |
D | zlibdecoder-bufread.rs | 22 z.read_to_string(&mut s)?; in decode_bufreader()
|
D | deflatedecoder-bufread.rs | 22 deflater.read_to_string(&mut s)?; in decode_reader()
|
D | zlibdecoder-read.rs | 22 z.read_to_string(&mut s)?; in decode_reader()
|
D | deflatedecoder-read.rs | 22 deflater.read_to_string(&mut s)?; in decode_reader()
|
D | gzmultidecoder-read.rs | 22 gz.read_to_string(&mut s)?; in decode_reader()
|
D | gzdecoder-read.rs | 22 gz.read_to_string(&mut s)?; in decode_reader()
|
D | gzdecoder-bufread.rs | 22 gz.read_to_string(&mut s)?; in decode_reader()
|
D | gzmultidecoder-bufread.rs | 22 gz.read_to_string(&mut s)?; in decode_reader()
|
/external/rust/crates/zip/examples/ |
D | extract_lorem.rs | 27 file.read_to_string(&mut contents).unwrap(); in real_main()
|