We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6873b9f + 2305dc0 commit 523acd9Copy full SHA for 523acd9
src/libcore/fmt/mod.rs
@@ -121,6 +121,21 @@ pub trait Write {
121
}
122
123
124
+#[stable(feature = "fmt_write_blanket_impl", since = "1.4.0")]
125
+impl<'a, W: Write + ?Sized> Write for &'a mut W {
126
+ fn write_str(&mut self, s: &str) -> Result {
127
+ (**self).write_str(s)
128
+ }
129
+
130
+ fn write_char(&mut self, c: char) -> Result {
131
+ (**self).write_char(c)
132
133
134
+ fn write_fmt(&mut self, args: Arguments) -> Result {
135
+ (**self).write_fmt(args)
136
137
+}
138
139
/// A struct to represent both where to emit formatting strings to and how they
140
/// should be formatted. A mutable version of this is passed to all formatting
141
/// traits.
0 commit comments