pub enum ModeMapping {
Canonical(EntryMode),
Normalized(EntryMode),
Gitlink,
Unknown,
}Expand description
SPEC-GIT-IMPORT §3.3 mode policy outcome.
Variants§
Canonical(EntryMode)
A canonical git mode.
Normalized(EntryMode)
A historic spelling, normalized to its canonical equivalent (declared-lossy; refused in fork-mode state dirs).
Gitlink
Submodule gitlink — always refused.
Unknown
Not a mode the mapping covers.
Trait Implementations§
Source§impl Clone for ModeMapping
impl Clone for ModeMapping
Source§fn clone(&self) -> ModeMapping
fn clone(&self) -> ModeMapping
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 ModeMapping
Source§impl Debug for ModeMapping
impl Debug for ModeMapping
impl Eq for ModeMapping
Source§impl PartialEq for ModeMapping
impl PartialEq for ModeMapping
Source§fn eq(&self, other: &ModeMapping) -> bool
fn eq(&self, other: &ModeMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModeMapping
Auto Trait Implementations§
impl Freeze for ModeMapping
impl RefUnwindSafe for ModeMapping
impl Send for ModeMapping
impl Sync for ModeMapping
impl Unpin for ModeMapping
impl UnsafeUnpin for ModeMapping
impl UnwindSafe for ModeMapping
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