Struct libpijul_compat::Key [] [src]

#[repr(packed)]
pub struct Key<H> { pub patch: H, pub line: LineId, }

A node in the repository graph, made of a patch internal identifier, and a line identifier in that patch.

Fields

The patch that introduced this node.

The line identifier of the node in that patch. Here, "line" does not imply anything on the contents of the chunk.

Methods

impl Key<PatchId>
[src]

[src]

impl Key<PatchId>
[src]

[src]

impl Key<Hash>
[src]

[src]

impl Key<PatchId>
[src]

[src]

Is this the root key? (the root key is all 0s).

[src]

Decode this key from its hexadecimal representation.

impl<T: Clone> Key<Option<T>>
[src]

[src]

Trait Implementations

impl<H: Clone> Clone for Key<H>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<H: Copy> Copy for Key<H>
[src]

impl<H: Debug> Debug for Key<H>
[src]

[src]

Formats the value using the given formatter.

impl<H: PartialEq> PartialEq for Key<H>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<H: PartialOrd> PartialOrd for Key<H>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<H: Eq> Eq for Key<H>
[src]

impl<H: Ord> Ord for Key<H>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<H: Hash> Hash for Key<H>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> AsRef<LineId> for Key<T>
[src]

[src]

Performs the conversion.