#[repr(C)]pub struct Vertex<H> {
pub change: H,
pub start: ChangePosition,
pub end: ChangePosition,
}
Expand description
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§
Trait Implementations§
source§impl<'de, H> Deserialize<'de> for Vertex<H>where
H: Deserialize<'de>,
impl<'de, H> Deserialize<'de> for Vertex<H>where H: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<H: Ord> Ord for Vertex<H>
impl<H: Ord> Ord for Vertex<H>
source§impl<H: PartialEq> PartialEq for Vertex<H>
impl<H: PartialEq> PartialEq for Vertex<H>
source§impl<H: PartialOrd> PartialOrd for Vertex<H>
impl<H: PartialOrd> PartialOrd for Vertex<H>
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 moreimpl<H: Copy> Copy for Vertex<H>
impl<H: Eq> Eq for Vertex<H>
impl<H> StructuralEq for Vertex<H>
impl<H> StructuralPartialEq for Vertex<H>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more