Enum gix_filter::eol::AttributesDigest
source · 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<AttributesDigest> for AttributesDigest
impl PartialEq<AttributesDigest> for AttributesDigest
source§fn eq(&self, other: &AttributesDigest) -> bool
fn eq(&self, other: &AttributesDigest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AttributesDigest
impl Eq for AttributesDigest
impl StructuralEq for AttributesDigest
impl StructuralPartialEq for AttributesDigest
Auto Trait Implementations§
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