pub struct LineEndingConfig {
pub input: LineEnding,
pub output: Option<LineEnding>,
pub auto_detect: bool,
}Expand description
Line ending configuration.
Fields§
§input: LineEndingInput line ending (what to send).
output: Option<LineEnding>Output line ending (normalize received output).
auto_detect: boolAuto-detect from first output.
Implementations§
Source§impl LineEndingConfig
impl LineEndingConfig
Sourcepub const fn with_input(self, ending: LineEnding) -> Self
pub const fn with_input(self, ending: LineEnding) -> Self
Set input line ending.
Sourcepub const fn with_output(self, ending: LineEnding) -> Self
pub const fn with_output(self, ending: LineEnding) -> Self
Set output normalization.
Sourcepub const fn with_auto_detect(self, auto: bool) -> Self
pub const fn with_auto_detect(self, auto: bool) -> Self
Enable auto-detection.
Trait Implementations§
Source§impl Clone for LineEndingConfig
impl Clone for LineEndingConfig
Source§fn clone(&self) -> LineEndingConfig
fn clone(&self) -> LineEndingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineEndingConfig
impl Debug for LineEndingConfig
Auto Trait Implementations§
impl Freeze for LineEndingConfig
impl RefUnwindSafe for LineEndingConfig
impl Send for LineEndingConfig
impl Sync for LineEndingConfig
impl Unpin for LineEndingConfig
impl UnwindSafe for LineEndingConfig
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