Enum rustfmt_nightly::NewlineStyle [−][src]
pub enum NewlineStyle {
Auto,
Windows,
Unix,
Native,
}
Variants
Auto-detect based on the raw source input.
Force CRLF (\r\n
).
Force CR (`\n).
\r\n
in Windows, `\n`` on other platforms.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for NewlineStyle
impl Send for NewlineStyle
impl Sync for NewlineStyle
impl Unpin for NewlineStyle
impl UnwindSafe for NewlineStyle
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Auto
: 0 bytesWindows
: 0 bytesUnix
: 0 bytesNative
: 0 bytes