speaker-state onto main (stance in packet, admit-only LoweringInput) + build notes #3
1 changed files with 8 additions and 0 deletions
validate: positive twin for the admissible compile_fail doctest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit
4fb817b18f
|
|
@ -114,6 +114,14 @@ pub fn validate(packet: &Packet, inventory: &Inventory) -> Result<(), Vec<Refusa
|
|||
/// The one implementation of the rules. Crate-private: `PacketStore::admit` is
|
||||
/// the only caller that keeps the view.
|
||||
///
|
||||
/// The first block is the same call through the public name, so the second
|
||||
/// fails for the private path and nothing else.
|
||||
///
|
||||
/// ```
|
||||
/// use weksa::{Inventory, packet::Packet};
|
||||
/// fn judge(p: &Packet, i: &Inventory) { let _ = weksa::validate::validate(p, i); }
|
||||
/// ```
|
||||
///
|
||||
/// ```compile_fail
|
||||
/// use weksa::{Inventory, packet::Packet};
|
||||
/// fn lower(p: &Packet, i: &Inventory) { let _ = weksa::validate::admissible(p, i); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue