[][src]Struct libpijul::Vertex

pub struct Vertex<H> {
    pub change: H,
    pub start: ChangePosition,
    pub end: ChangePosition,
}

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

Fields

change: H

The change that introduced this node.

start: ChangePosition

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

end: ChangePosition

Implementations

impl Vertex<ChangeId>[src]

pub const ROOT: Vertex<ChangeId>[src]

The node at the root of the repository graph.

pub fn is_root(&self) -> bool[src]

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

impl<H: Clone> Vertex<H>[src]

pub fn start_pos(&self) -> Position<H>[src]

Convenience function to get the start position of a Vertex<ChangeId> as a Position.

pub fn end_pos(&self) -> Position<H>[src]

Convenience function to get the end position of a Vertex<ChangeId> as a Position.

pub fn len(&self) -> usize[src]

Length of this key, in bytes.

Trait Implementations

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

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

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

impl<'de, H> Deserialize<'de> for Vertex<H> where
    H: Deserialize<'de>, 
[src]

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

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

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

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

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

impl Representable for Vertex<ChangeId>[src]

type PageOffsets = Empty<u64>

An iterator over the offsets to pages contained in this value. Only values from this crate can generate non-empty iterators, but combined values (like tuples) must chain the iterators returned by method page_offsets. Read more

impl<H> Serialize for Vertex<H> where
    H: Serialize
[src]

impl<H> StructuralEq for Vertex<H>[src]

impl<H> StructuralPartialEq for Vertex<H>[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for Vertex<H> where
    H: RefUnwindSafe

impl<H> Send for Vertex<H> where
    H: Send

impl<H> Sync for Vertex<H> where
    H: Sync

impl<H> Unpin for Vertex<H> where
    H: Unpin

impl<H> UnwindSafe for Vertex<H> where
    H: UnwindSafe

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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>,