aboutsummaryrefslogtreecommitdiff
path: root/src/mpkh.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/mpkh.rs
parent1f92f06d21289019ca8a955b9162da66d98badfe (diff)
downloaddcel-4cc4f8d5e07a4aa85ac52ce3205574e37ffdf780.tar.xz
generational references & documentation
Diffstat (limited to 'src/mpkh.rs')
-rw-r--r--src/mpkh.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mpkh.rs b/src/mpkh.rs
index e19bd42..b55f298 100644
--- a/src/mpkh.rs
+++ b/src/mpkh.rs
@@ -72,6 +72,9 @@ fn maybe_split<'brand, 'arena, V>(
Some(new_shell)
}
+/// Operator corresponding to MPKH in SNUMOD.
+///
+/// See [`Dcel::mpkh`] for details.
pub struct Mpkh<'brand, 'arena, V> {
pub loop_: ptr!(Loop),
}
@@ -82,6 +85,7 @@ impl<'brand, 'arena, V> Mpkh<'brand, 'arena, V> {
}
}
+/// Precondition Error for [`Mpkh`].
#[derive(Debug, Error)]
pub enum MpkhError {
#[error("loop is not an inner loop")]
@@ -131,12 +135,16 @@ impl<'brand, 'arena, V> Operator<'brand, 'arena, V> for Mpkh<'brand, 'arena, V>
}
}
+/// Operator corresponding to KPMH in SNUMOD.
+///
+/// See [`Dcel::kpmh`] for details.
pub struct Kpmh<'brand, 'arena, V> {
pub new_shell: Option<own!(Shell)>,
pub old_face: ptr!(Face),
pub new_face: own!(Face),
}
+/// Precondition Error for [`Kpmh`].
#[derive(Error, Debug)]
pub enum KpmhError {
#[error("face does not match shell")]