Sebastian Thiel[packetline #178] refactor0c7c5995 years agoHistory
21 lines · 586 B · Rust
RawDownload
use crate::Writer; #[cfg(all(not(feature = "blocking-io"), feature = "async-io"))]pub(crate) mod async_io; #[cfg(feature = "blocking-io")]pub(crate) mod blocking_io; /// Common methodsimpl<T> Writer<T> {    /// As [`enable_text_mode()`][Writer::enable_text_mode()], but suitable for chaining.    pub fn text_mode(mut self) -> Self {        self.enable_text_mode();        self    }    /// As [`enable_binary_mode()`][Writer::enable_binary_mode()], but suitable for chaining.    pub fn binary_mode(mut self) -> Self {        self.enable_binary_mode();        self    }}