aboutsummaryrefslogtreecommitdiff
path: root/src/msev.rs
diff options
context:
space:
mode:
authorCharlotte Pabst <charlotte.pabst@stud.tu-darmstadt.de>2024-03-25 02:25:43 +0100
committerCharlotte Pabst <charlotte.pabst@stud.tu-darmstadt.de>2024-03-25 02:25:43 +0100
commit4cc4f8d5e07a4aa85ac52ce3205574e37ffdf780 (patch)
tree4a4a6c864e25ab8df5f6547b490428b23c6c5d14 /src/msev.rs
parent1f92f06d21289019ca8a955b9162da66d98badfe (diff)
downloaddcel-4cc4f8d5e07a4aa85ac52ce3205574e37ffdf780.tar.xz
generational references & documentation
Diffstat (limited to 'src/msev.rs')
-rw-r--r--src/msev.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/msev.rs b/src/msev.rs
index 16d18e4..945b729 100644
--- a/src/msev.rs
+++ b/src/msev.rs
@@ -2,6 +2,9 @@
use crate::*;
+/// Operator corresponding to MZEV in SNUMOD.
+///
+/// See [`Dcel::msev`] for details.
pub struct Msev<'brand, 'arena, V> {
pub shell: ptr!(Shell),
pub vertex: ptr!(Vertex),
@@ -20,6 +23,7 @@ impl<'brand, 'arena, V> Msev<'brand, 'arena, V> {
}
}
+/// Precondition Error for [`Msev`].
#[derive(Debug, Error)]
pub enum MsevError {
#[error("vertex is not part of loop")]
@@ -81,6 +85,9 @@ impl<'brand, 'arena, V> Operator<'brand, 'arena, V> for Msev<'brand, 'arena, V>
}
}
+/// Operator corresponding to KZEV in SNUMOD.
+///
+/// See [`Dcel::ksev`] for details.
pub struct Ksev<'brand, 'arena, V> {
pub shell: ptr!(Shell),
pub loops: [ptr!(Loop); 2],
@@ -107,6 +114,7 @@ impl<'brand, 'arena, V> Ksev<'brand, 'arena, V> {
}
}
+/// Precondition Error for [`Ksev`].
#[derive(Debug, Error)]
pub enum KsevError {
#[error("edge does not match vertices")]