[][src]Struct esl01_dag::id::Group

pub struct Group(_);

An integer that separates distinct groups of Ids.

This can be seen as a way to pre-allocate consecutive integers for one group to make segments less fragmented.

(Group, Id) are also topologically sorted.

Methods

impl Group[src]

pub const MASTER: Self[src]

The "master" group. ancestors(master).

  • Expected to have most of the commits in a repo.
  • Expected to be free from fragmentation. In other words, ancestors(master) can be represented in a single Span.

pub const NON_MASTER: Self[src]

The "non-master" group.

  • Anything not in ancestors(master). For example, public release branches, local feature branches.
  • Expected to have multiple heads. In other words, is fragmented.
  • Expected to be sparse referred. For example, the "visible heads" will refer to a bounded subset in this group.

pub const ALL: [Self; 2][src]

pub const fn min_id(self) -> Id[src]

The first Id in this group.

pub const fn max_id(self) -> Id[src]

The maximum Id in this group.

Trait Implementations

impl Clone for Group[src]

impl Copy for Group[src]

impl Debug for Group[src]

impl Display for Group[src]

impl Eq for Group[src]

impl Hash for Group[src]

impl Ord for Group[src]

impl PartialEq<Group> for Group[src]

impl PartialOrd<Group> for Group[src]

impl StructuralEq for Group[src]

impl StructuralPartialEq for Group[src]

Auto Trait Implementations

impl RefUnwindSafe for Group

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl UnwindSafe for Group

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,