pub struct Entry {
pub index: u8,
pub worktree: u8,
}Expand description
One file, reduced to what the summary needs.
The path is not here. Ordering needs to compare paths, but paths cross the
boundary as UTF-8 bytes in paths, not as owned Rust strings per entry, which
keeps a thousand-file tree to two flat allocations.
Fields§
§index: u8State in the index (staged), or 255 for “not staged”.
worktree: u8State in the worktree, or 255 for “not staged”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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