pub enum DeclaredEol {
Unspecified,
Lf,
Crlf,
}Expand description
The eol= value git resolved, in the only two spellings that decide anything.
Kept beside EolConversion instead of folded into it because the two answer
different questions. EolConversion is the check-in verdict and does not
depend on configuration at all: text strips CR on the way into the object
database whatever core.autocrlf says. The check-out direction does depend
on it, and on this attribute — text eol=lf converts on the way in and writes
the stored bytes out untouched.
Variants§
Unspecified
No eol=, or a value git does not recognise: the configuration decides.
Lf
eol=lf.
Crlf
eol=crlf.
Trait Implementations§
Source§impl Clone for DeclaredEol
impl Clone for DeclaredEol
Source§fn clone(&self) -> DeclaredEol
fn clone(&self) -> DeclaredEol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeclaredEol
Source§impl Debug for DeclaredEol
impl Debug for DeclaredEol
impl Eq for DeclaredEol
Source§impl PartialEq for DeclaredEol
impl PartialEq for DeclaredEol
impl StructuralPartialEq for DeclaredEol
Auto Trait Implementations§
impl Freeze for DeclaredEol
impl RefUnwindSafe for DeclaredEol
impl Send for DeclaredEol
impl Sync for DeclaredEol
impl Unpin for DeclaredEol
impl UnsafeUnpin for DeclaredEol
impl UnwindSafe for DeclaredEol
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