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§
source§impl Clone for NewlineStyle
impl Clone for NewlineStyle
source§fn clone(&self) -> NewlineStyle
fn clone(&self) -> NewlineStyle
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 ConfigType for NewlineStyle
impl ConfigType for NewlineStyle
source§impl Debug for NewlineStyle
impl Debug for NewlineStyle
source§impl<'de> Deserialize<'de> for NewlineStyle
impl<'de> Deserialize<'de> for NewlineStyle
source§fn 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
source§impl Display for NewlineStyle
impl Display for NewlineStyle
source§impl FromStr for NewlineStyle
impl FromStr for NewlineStyle
source§impl PartialEq<NewlineStyle> for NewlineStyle
impl PartialEq<NewlineStyle> for NewlineStyle
source§fn eq(&self, other: &NewlineStyle) -> bool
fn eq(&self, other: &NewlineStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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