23 lines · 695 B · Rust
RawDownload
#[cfg(all(not(feature = "blocking-io"), feature = "async-io"))]mod async_io;#[cfg(all(not(feature = "blocking-io"), feature = "async-io"))]pub use async_io::Writer; #[cfg(feature = "blocking-io")]mod blocking_io;#[cfg(feature = "blocking-io")]pub use blocking_io::Writer; /// 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    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t