pub enum AttributesDigest {
Binary,
Text,
TextInput,
TextCrlf,
TextAuto,
TextAutoCrlf,
TextAutoInput,
}
Expand description
The combination of crlf
, text
and eol
attributes into one neat package.
Variants§
Binary
Equivalent to the -text
attribute.
Text
Equivalent to the text
attribute.
TextInput
Equivalent to the text eol=lf
attributes.
TextCrlf
Equivalent to the text eol=crlf
attributes.
TextAuto
Equivalent to the text=auto
attributes.
TextAutoCrlf
Equivalent to the text=auto eol=crlf
attributes.
TextAutoInput
Equivalent to the text=auto eol=lf
attributes.
Implementations§
source§impl AttributesDigest
impl AttributesDigest
sourcepub fn to_eol(&self, config: Configuration) -> Option<Mode>
pub fn to_eol(&self, config: Configuration) -> Option<Mode>
Return the end-of-line mode this digest would require, or None
if no conversion would be performed.
sourcepub fn is_auto_text(&self) -> bool
pub fn is_auto_text(&self) -> bool
Return true if this digest allows for auto-determination of CRLF text conversion.
Trait Implementations§
source§impl Clone for AttributesDigest
impl Clone for AttributesDigest
source§fn clone(&self) -> AttributesDigest
fn clone(&self) -> AttributesDigest
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 AttributesDigest
impl Debug for AttributesDigest
source§impl From<AutoCrlf> for AttributesDigest
impl From<AutoCrlf> for AttributesDigest
source§impl From<Mode> for AttributesDigest
impl From<Mode> for AttributesDigest
source§impl PartialEq for AttributesDigest
impl PartialEq for AttributesDigest
impl Copy for AttributesDigest
impl Eq for AttributesDigest
impl StructuralPartialEq for AttributesDigest
Auto Trait Implementations§
impl Freeze for AttributesDigest
impl RefUnwindSafe for AttributesDigest
impl Send for AttributesDigest
impl Sync for AttributesDigest
impl Unpin for AttributesDigest
impl UnwindSafe for AttributesDigest
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
)