Enum rustfmt_nightly::NewlineStyle
source · pub enum NewlineStyle {
Auto,
Windows,
Unix,
Native,
}
Variants
Auto
Auto-detect based on the raw source input.
Windows
Force CRLF (\r\n
).
Unix
Force CR (`\n).
Native
\r\n
in Windows, \n
on other platforms.
Trait Implementations
sourceimpl Clone for NewlineStyle
impl Clone for NewlineStyle
sourcefn clone(&self) -> NewlineStyle
fn clone(&self) -> NewlineStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConfigType for NewlineStyle
impl ConfigType for NewlineStyle
sourceimpl Debug for NewlineStyle
impl Debug for NewlineStyle
sourceimpl<'de> Deserialize<'de> for NewlineStyle
impl<'de> Deserialize<'de> for NewlineStyle
sourcefn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for NewlineStyle
impl Display for NewlineStyle
sourceimpl FromStr for NewlineStyle
impl FromStr for NewlineStyle
sourceimpl PartialEq<NewlineStyle> for NewlineStyle
impl PartialEq<NewlineStyle> for NewlineStyle
sourcefn eq(&self, other: &NewlineStyle) -> bool
fn eq(&self, other: &NewlineStyle) -> bool
sourceimpl Serialize for NewlineStyle
impl Serialize for NewlineStyle
impl Copy for NewlineStyle
impl Eq for NewlineStyle
impl StructuralEq for NewlineStyle
impl StructuralPartialEq for NewlineStyle
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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