-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Update mod.rs #141935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mod.rs #141935
Changes from 1 commit
4d56e88
95ff1e4
ffabd27
28d3682
f9499d9
ac993c4
a0350b2
c3567c1
10a81ef
20e554b
80767ea
d76aaea
608fe82
bf29712
3b9480d
0f617e3
bc91070
af990ac
06f3050
1830c9b
cfdc10b
b4be056
a73ec8a
7563815
b4308fc
0b3d6f5
3878b69
1fd08c7
f70d304
689a2a6
58f3c5e
be0705c
9b42771
88f3ba1
49f146c
e620131
7cb7542
c5f1c58
fd20ff9
c901623
6d8856e
f8e301c
ecffede
f42ebfa
e3c9bd3
84c36c4
3135980
a50cf4d
fecd610
8ac2576
72b2ce4
d3586db
eea5295
374b9c9
1454a0d
7e2e608
de794e4
ddab0d8
d386874
156fab5
3453e36
5f6b5d9
bbbd641
a0c447f
7100d28
e6fa498
2161b80
22c04b8
1ea8699
99dd99b
b497e61
2de3006
2dfe379
b86a201
fe7aaab
f883bef
2fdb150
1232f32
a308272
8853bfa
48ca697
5127d48
b72bcdd
b92f05a
c15f1d8
cf0dd5d
44f8bee
b9f8abf
1b75e1a
fedc840
beb00d4
50a8292
376507b
73325df
badc578
e62aa1b
23b7206
433dc71
0e9accc
7f11e8f
f8d321d
ef9b35c
517f12f
36c4228
ca73c15
57bdcfa
2f92d6d
2d2369f
3be8875
8c85829
eab2c69
0384ba3
9c6c62b
aaece93
7f19764
7a1abae
d6bc12c
bc08052
d1a4e71
ab70932
eeb2f6c
76d8b35
fb54651
d84e222
f3ef1b0
4993831
fb80bfd
3432db9
8563905
8587e1a
7298055
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -917,6 +917,13 @@ pub trait Read { | |
| /// # } | ||
| /// ``` | ||
| /// | ||
| /// # Notes | ||
| /// | ||
| /// Be careful using this trait method with streams that are expected to be continuous. For example, using | ||
| /// `read_to_end` with streams like `stdin` will simply lock the application into waiting on the | ||
| /// transmission of data to conclude. It is recommended you use this method if you know the stream will be closed | ||
| /// at the other end. The problem is that EOF or End of File is never reached for streams that never close or are finite. | ||
| /// | ||
| /// [`Vec::try_reserve`]: crate::vec::Vec::try_reserve | ||
| #[stable(feature = "rust1", since = "1.0.0")] | ||
| fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize> { | ||
|
|
@@ -957,6 +964,13 @@ pub trait Read { | |
| /// } | ||
| /// ``` | ||
| /// | ||
| /// # Notes | ||
| /// | ||
| /// Be careful using this trait method with streams that are expected to be continuous. For example, using | ||
| /// `read_to_string` with streams like `stdin` will simply lock the application into waiting on the | ||
| /// transmission of data to conclude. It is recommended you use this method if you know the stream will be closed | ||
| /// at the other end. The problem is that EOF or End of File is never reached for streams that never close or are finite. | ||
| /// | ||
| /// (See also the [`std::fs::read_to_string`] convenience function for | ||
| /// reading from a file.) | ||
|
||
| /// | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.