pub enum Mode {
ToWorktreeAndBinaryToText,
ToGitUnlessBinaryToTextIsPresent,
ToGit,
}
Available on crate feature
blob
only.Expand description
The specific way to convert a resource.
Variants§
ToWorktreeAndBinaryToText
Always prepare the version of the resource as it would be in the work-tree, and apply binary-to-text filters if present.
This is typically free for resources in the worktree, and will apply filters to resources in the object database.
ToGitUnlessBinaryToTextIsPresent
Prepare the version of the resource as it would be in the work-tree if
binary-to-text filters are present (and apply them), or use the version in git
otherwise.
ToGit
Always prepare resources as they are stored in git
.
This is usually fastest, even though resources in the worktree needed to be converted files.
Trait Implementations§
source§impl Ord for Mode
impl Ord for Mode
source§impl PartialEq for Mode
impl PartialEq for Mode
source§impl PartialOrd for Mode
impl PartialOrd for Mode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more