about summary refs log tree commit diff
path: root/src/libstd/io/stdio.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2020-03-11 18:02:52 -0700
committerSteven Fackler <sfackler@gmail.com>2020-04-26 04:24:16 -0700
commit07443f17d4c2e8135d1cbf415f6bd22eee86b64a (patch)
tree1fc883588b4098f527849ab69f4fa8fef23b55cb /src/libstd/io/stdio.rs
parent15262ec6be6fcfc9f27e174a0714d5a62e775fb0 (diff)
downloadrust-07443f17d4c2e8135d1cbf415f6bd22eee86b64a.tar.gz
rust-07443f17d4c2e8135d1cbf415f6bd22eee86b64a.zip
Update name
Diffstat (limited to 'src/libstd/io/stdio.rs')
-rw-r--r--src/libstd/io/stdio.rs44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs
index fd5a1291785..b65b150d2c3 100644
--- a/src/libstd/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -88,8 +88,8 @@ impl Read for StdinRaw {
     }
 
     #[inline]
-    fn can_read_vectored(&self) -> bool {
-        self.0.can_read_vectored()
+    fn is_read_vectored(&self) -> bool {
+        self.0.is_read_vectored()
     }
 
     #[inline]
@@ -107,8 +107,8 @@ impl Write for StdoutRaw {
     }
 
     #[inline]
-    fn can_write_vectored(&self) -> bool {
-        self.0.can_write_vectored()
+    fn is_write_vectored(&self) -> bool {
+        self.0.is_write_vectored()
     }
 
     fn flush(&mut self) -> io::Result<()> {
@@ -125,8 +125,8 @@ impl Write for StderrRaw {
     }
 
     #[inline]
-    fn can_write_vectored(&self) -> bool {
-        self.0.can_write_vectored()
+    fn is_write_vectored(&self) -> bool {
+        self.0.is_write_vectored()
     }
 
     fn flush(&mut self) -> io::Result<()> {
@@ -156,9 +156,9 @@ impl<W: io::Write> io::Write for Maybe<W> {
     }
 
     #[inline]
-    fn can_write_vectored(&self) -> bool {
+    fn is_write_vectored(&self) -> bool {
         match self {
-            Maybe::Real(w) => w.can_write_vectored(),
+            Maybe::Real(w) => w.is_write_vectored(),
             Maybe::Fake => true,
         }
     }
@@ -187,9 +187,9 @@ impl<R: io::Read> io::Read for Maybe<R> {
     }
 
     #[inline]
-    fn can_read_vectored(&self) -> bool {
+    fn is_read_vectored(&self) -> bool {
         match self {
-            Maybe::Real(w) => w.can_read_vectored(),
+            Maybe::Real(w) => w.is_read_vectored(),
             Maybe::Fake => true,
         }
     }
@@ -383,8 +383,8 @@ impl Read for Stdin {
         self.lock().read_vectored(bufs)
     }
     #[inline]
-    fn can_read_vectored(&self) -> bool {
-        self.lock().can_read_vectored()
+    fn is_read_vectored(&self) -> bool {
+        self.lock().is_read_vectored()
     }
     #[inline]
     unsafe fn initializer(&self) -> Initializer {
@@ -412,8 +412,8 @@ impl Read for StdinLock<'_> {
     }
 
     #[inline]
-    fn can_read_vectored(&self) -> bool {
-        self.inner.can_read_vectored()
+    fn is_read_vectored(&self) -> bool {
+        self.inner.is_read_vectored()
     }
 
     #[inline]
@@ -584,8 +584,8 @@ impl Write for Stdout {
         self.lock().write_vectored(bufs)
     }
     #[inline]
-    fn can_write_vectored(&self) -> bool {
-        self.lock().can_write_vectored()
+    fn is_write_vectored(&self) -> bool {
+        self.lock().is_write_vectored()
     }
     fn flush(&mut self) -> io::Result<()> {
         self.lock().flush()
@@ -606,8 +606,8 @@ impl Write for StdoutLock<'_> {
         self.inner.borrow_mut().write_vectored(bufs)
     }
     #[inline]
-    fn can_write_vectored(&self) -> bool {
-        self.inner.borrow_mut().can_write_vectored()
+    fn is_write_vectored(&self) -> bool {
+        self.inner.borrow_mut().is_write_vectored()
     }
     fn flush(&mut self) -> io::Result<()> {
         self.inner.borrow_mut().flush()
@@ -758,8 +758,8 @@ impl Write for Stderr {
         self.lock().write_vectored(bufs)
     }
     #[inline]
-    fn can_write_vectored(&self) -> bool {
-        self.lock().can_write_vectored()
+    fn is_write_vectored(&self) -> bool {
+        self.lock().is_write_vectored()
     }
     fn flush(&mut self) -> io::Result<()> {
         self.lock().flush()
@@ -780,8 +780,8 @@ impl Write for StderrLock<'_> {
         self.inner.borrow_mut().write_vectored(bufs)
     }
     #[inline]
-    fn can_write_vectored(&self) -> bool {
-        self.inner.borrow_mut().can_write_vectored()
+    fn is_write_vectored(&self) -> bool {
+        self.inner.borrow_mut().is_write_vectored()
     }
     fn flush(&mut self) -> io::Result<()> {
         self.inner.borrow_mut().flush()