pub enum RawNewLineKind {
Auto,
LineFeed,
CarriageReturnLineFeed,
System,
}
Variants§
Auto
Decide which newline kind to use based on the last newline in the file.
LineFeed
Use slash n new lines.
CarriageReturnLineFeed
Use slash r slash n new lines.
System
Use the system standard (ex. crlf on Windows)
Trait Implementations§
source§impl Clone for RawNewLineKind
impl Clone for RawNewLineKind
source§fn clone(&self) -> RawNewLineKind
fn clone(&self) -> RawNewLineKind
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 RawNewLineKind
impl Debug for RawNewLineKind
source§impl<'de> Deserialize<'de> for RawNewLineKind
impl<'de> Deserialize<'de> for RawNewLineKind
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 Display for RawNewLineKind
impl Display for RawNewLineKind
source§impl FromStr for RawNewLineKind
impl FromStr for RawNewLineKind
source§impl Hash for RawNewLineKind
impl Hash for RawNewLineKind
source§impl PartialEq for RawNewLineKind
impl PartialEq for RawNewLineKind
source§impl Serialize for RawNewLineKind
impl Serialize for RawNewLineKind
impl Copy for RawNewLineKind
impl Eq for RawNewLineKind
impl StructuralPartialEq for RawNewLineKind
Auto Trait Implementations§
impl Freeze for RawNewLineKind
impl RefUnwindSafe for RawNewLineKind
impl Send for RawNewLineKind
impl Sync for RawNewLineKind
impl Unpin for RawNewLineKind
impl UnwindSafe for RawNewLineKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.