Trait coreplus::io::Write [−][src]
pub trait Write { type Error; fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>; fn flush(&mut self) -> Result<(), Self::Error>; fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error> { ... } fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Self::Error> { ... } }
Expand description
Write bytes.
When the std
feature is enabled (by default), this trait is automatically
implemented for any type that implemented std::io::Write
.