chiark / gitweb /
hidden: Document ShowUnocculted proof obligations
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Apr 2021 17:13:40 +0000 (18:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Apr 2021 17:13:40 +0000 (18:13 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs

index 01a0227d5aaadb0fb6588c0ed77d7ef1629e1f44..31f165bd46715f44ed12a64d98b4c57dacb6b81d 100644 (file)
@@ -17,6 +17,9 @@ visible_slotmap_key!{ OccId(b'H') }
 // ========== data structures ==========
 
 #[derive(Copy,Clone,Debug)]
+/// Proof token.
+///
+/// Proof obligation when constructing.
 pub struct ShowUnocculted(());
 
 #[derive(Copy,Clone,Debug)]
@@ -358,14 +361,16 @@ impl OccDisplacement {
 }
 
 impl ShowUnocculted {
-  /// override
+  /// Override.  Proof obligation: this context does not require
+  /// honouring occultation.
   pub const fn new_visible() -> ShowUnocculted {
     ShowUnocculted(())
   }
 }
 
 impl PieceRenderInstructions {
-  /// override
+  /// Override.  Proof obligation: this context does not require
+  /// honouring occultation.
   pub fn new_visible(vpid: VisiblePieceId) -> PieceRenderInstructions {
     PieceRenderInstructions {
       vpid,