#[non_exhaustive]pub enum SubmoduleState {
Current,
Uninitialized,
RevisionMismatch,
Conflict,
}Expand description
The sync state of a submodule, from the one-character prefix in the
git submodule status output.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Current
Initialized, and the checked-out commit matches the commit the
superproject records for it — no prefix (a leading space) in
git submodule status.
Uninitialized
Not initialized (- prefix): the working tree is absent, so
git submodule update --init is needed before the submodule can be used.
RevisionMismatch
The currently checked-out submodule commit does not match the commit
recorded in the superproject’s index (+ prefix) — the working submodule
is out of sync with the recorded gitlink.
Conflict
The submodule has unresolved merge conflicts (U prefix).
Trait Implementations§
Source§impl Clone for SubmoduleState
impl Clone for SubmoduleState
Source§fn clone(&self) -> SubmoduleState
fn clone(&self) -> SubmoduleState
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 SubmoduleState
Source§impl Debug for SubmoduleState
impl Debug for SubmoduleState
impl Eq for SubmoduleState
Source§impl PartialEq for SubmoduleState
impl PartialEq for SubmoduleState
impl StructuralPartialEq for SubmoduleState
Auto Trait Implementations§
impl Freeze for SubmoduleState
impl RefUnwindSafe for SubmoduleState
impl Send for SubmoduleState
impl Sync for SubmoduleState
impl Unpin for SubmoduleState
impl UnsafeUnpin for SubmoduleState
impl UnwindSafe for SubmoduleState
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