Struct git_commitgraph::file::Position
source · 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 lexigraphical position
is its position in this ordering. If a commit graph spans multiple files, each file’s commits
start at lexigraphical 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 (graph::Position
),
which is unique /// across the whole commit graph. In order to avoid accidentally mixing lexigraphical 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 PartialEq<Position> for Position
impl PartialEq<Position> for Position
source§impl PartialOrd<Position> for Position
impl PartialOrd<Position> for Position
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 more