pub struct State {
pub repository_exists: bool,
pub is_old_form: bool,
pub worktree_checkout: bool,
pub superproject_configuration: bool,
}Available on crate feature
attributes only.Expand description
A summary of the state of all parts forming a submodule, which allows to answer various questions about it.
Note that expensive questions about its presence in the HEAD or the index are left to the caller.
Fields§
§repository_exists: boolif the submodule repository has been cloned.
is_old_form: boolif the submodule repository is located directly in the worktree of the superproject.
worktree_checkout: boolif the worktree is checked out.
superproject_configuration: boolIf submodule configuration was found in the superproject’s .git/config file.
Note that the presence of a single section is enough, independently of the actual values.
Trait Implementations§
source§impl Ord for State
impl Ord for State
source§impl PartialEq for State
impl PartialEq for State
source§impl PartialOrd for State
impl PartialOrd for State
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 State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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