pub struct FlushOnNewline;
Expand description
Flush the buffer if it contains a newline (\n
).
Equivalent to FlushOn(b'\n')
.
Trait Implementations§
Source§impl Debug for FlushOnNewline
impl Debug for FlushOnNewline
Source§impl Default for FlushOnNewline
impl Default for FlushOnNewline
Source§fn default() -> FlushOnNewline
fn default() -> FlushOnNewline
Returns the “default value” for a type. Read more
Source§impl WriterPolicy for FlushOnNewline
impl WriterPolicy for FlushOnNewline
Auto Trait Implementations§
impl Freeze for FlushOnNewline
impl RefUnwindSafe for FlushOnNewline
impl Send for FlushOnNewline
impl Sync for FlushOnNewline
impl Unpin for FlushOnNewline
impl UnwindSafe for FlushOnNewline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more