Enum rsn_fmt::config::LineEnding
source · pub enum LineEnding {
Detect,
Platform,
Lf,
CrLf,
}
Expand description
Line endings to use
Variants§
Detect
Detect line endings from input
Uses the first line ending encountered, if the file does not have any
line breaks, falls back to Platform
.
Platform
Use platform line endings
\n\r
on Windows\n
everywhere else
Lf
Use unix line endings (\n
)
CrLf
Use windows line endings (\n\r
)
Trait Implementations§
source§impl Clone for LineEnding
impl Clone for LineEnding
source§fn clone(&self) -> LineEnding
fn clone(&self) -> LineEnding
Returns a copy 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 LineEnding
impl Debug for LineEnding
source§impl Default for LineEnding
impl Default for LineEnding
source§fn default() -> LineEnding
fn default() -> LineEnding
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LineEnding
impl<'de> Deserialize<'de> for LineEnding
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for LineEnding
impl Serialize for LineEnding
impl Copy for LineEnding
Auto Trait Implementations§
impl RefUnwindSafe for LineEnding
impl Send for LineEnding
impl Sync for LineEnding
impl Unpin for LineEnding
impl UnwindSafe for LineEnding
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