pub struct Position(pub u32);
Expand description
The position of a given commit within a graph file, starting at 0.
Commits within a graph file are sorted in lexicographical order by OID; a commit’s lexicographical position
is its position in this ordering. If a commit graph spans multiple files, each file’s commits
start at lexicographical position 0, so it is unique across a single file but is not unique across
the whole commit graph. Each commit also has a graph position (Position
),
which is unique across the whole commit graph.
In order to avoid accidentally mixing lexicographical positions with graph positions, distinct types are used for each.
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Ord for Position
impl Ord for Position
Source§impl PartialOrd for Position
impl PartialOrd for Position
impl Copy for Position
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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