diff options
author | Charlotte Pabst <charlotte.pabst@stud.tu-darmstadt.de> | 2024-03-25 02:25:43 +0100 |
---|---|---|
committer | Charlotte Pabst <charlotte.pabst@stud.tu-darmstadt.de> | 2024-03-25 02:25:43 +0100 |
commit | 4cc4f8d5e07a4aa85ac52ce3205574e37ffdf780 (patch) | |
tree | 4a4a6c864e25ab8df5f6547b490428b23c6c5d14 /src/mev.rs | |
parent | 1f92f06d21289019ca8a955b9162da66d98badfe (diff) | |
download | dcel-4cc4f8d5e07a4aa85ac52ce3205574e37ffdf780.tar.xz |
generational references & documentation
Diffstat (limited to 'src/mev.rs')
-rw-r--r-- | src/mev.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2,6 +2,9 @@ use crate::*; // Make Edge-Vertex +/// Operator corresponding to MEV in SNUMOD. +/// +/// See [`Dcel::mev`] for details. pub struct Mev<'brand, 'arena, V> { pub loop_: ptr!(Loop), pub vertex: ptr!(Vertex), @@ -18,6 +21,7 @@ impl<'brand, 'arena, V> Mev<'brand, 'arena, V> { } } +/// Precondition Error for [`Mev`]. #[derive(Debug, Error)] pub enum MevError { #[error("vertex is not part of loop")] @@ -72,6 +76,9 @@ impl<'brand, 'arena, V> Operator<'brand, 'arena, V> for Mev<'brand, 'arena, V> { } } +/// Operator corresponding to KEV in SNUMOD. +/// +/// See [`Dcel::kev`] for details. pub struct Kev<'brand, 'arena, V> { pub edge: own!(Edge), pub vertex: own!(Vertex), @@ -83,6 +90,7 @@ impl<'brand, 'arena, V> Kev<'brand, 'arena, V> { } } +/// Precondition Error for [`Kev`]. #[derive(Debug, Error)] pub enum KevError { #[error("half edges don't go back and forth between new and old vertex")] |