Struct git_commitgraph::file::Position [−][src]
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
Mutably borrows from an owned value. Read more