pub struct ShortStatusRow<'a> {
pub index: u8,
pub worktree: u8,
pub path: &'a [u8],
pub head_mode: Option<u32>,
pub index_mode: Option<u32>,
pub worktree_mode: Option<u32>,
pub head_oid: Option<ObjectId>,
pub index_oid: Option<ObjectId>,
pub submodule: Option<SubmoduleStatus>,
}Fields§
§index: u8§worktree: u8§path: &'a [u8]§head_mode: Option<u32>§index_mode: Option<u32>§worktree_mode: Option<u32>§head_oid: Option<ObjectId>§index_oid: Option<ObjectId>§submodule: Option<SubmoduleStatus>For a tracked gitlink (submodule) path: how the submodule’s working
state differs from the staged gitlink. None for ordinary paths.
Implementations§
Source§impl ShortStatusRow<'_>
impl ShortStatusRow<'_>
pub fn to_owned_entry(self) -> ShortStatusEntry
pub fn line(&self) -> String
Trait Implementations§
Source§impl<'a> Clone for ShortStatusRow<'a>
impl<'a> Clone for ShortStatusRow<'a>
Source§fn clone(&self) -> ShortStatusRow<'a>
fn clone(&self) -> ShortStatusRow<'a>
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<'a> Copy for ShortStatusRow<'a>
Source§impl<'a> Debug for ShortStatusRow<'a>
impl<'a> Debug for ShortStatusRow<'a>
impl<'a> Eq for ShortStatusRow<'a>
Source§impl<'a> PartialEq for ShortStatusRow<'a>
impl<'a> PartialEq for ShortStatusRow<'a>
Source§fn eq(&self, other: &ShortStatusRow<'a>) -> bool
fn eq(&self, other: &ShortStatusRow<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ShortStatusRow<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShortStatusRow<'a>
impl<'a> RefUnwindSafe for ShortStatusRow<'a>
impl<'a> Send for ShortStatusRow<'a>
impl<'a> Sync for ShortStatusRow<'a>
impl<'a> Unpin for ShortStatusRow<'a>
impl<'a> UnsafeUnpin for ShortStatusRow<'a>
impl<'a> UnwindSafe for ShortStatusRow<'a>
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