pub type ParserSpecs<SpecP, Cnstcy, Blen> = (SpecP, Cnstcy, Blen);Expand description
Bundled triple of parser, consistency, and byte-length spec functions.
Trait Implementations§
Source§impl<SpecP, Cnstcy, Blen> Consistency for ParserSpecs<SpecP, Cnstcy, Blen>
impl<SpecP, Cnstcy, Blen> Consistency for ParserSpecs<SpecP, Cnstcy, Blen>
Source§open spec fn consistent(&self, v: Self::Val) -> bool
open spec fn consistent(&self, v: Self::Val) -> bool
{ (self.1).consistent(v) }Source§type Val = <Blen as SpecByteLen>::T
type Val = <Blen as SpecByteLen>::T
The type of values whose consistency is being checked.
Source§impl<SpecP, Cnstcy, Blen> NonMalleable for ParserSpecs<SpecP, Cnstcy, Blen>
impl<SpecP, Cnstcy, Blen> NonMalleable for ParserSpecs<SpecP, Cnstcy, Blen>
Source§open spec fn nonmal_inv(&self) -> bool
open spec fn nonmal_inv(&self) -> bool
{
let (p, _, _) = *self;
let p_fn = |ibuf| p.spec_parse(ibuf);
non_malleable_parser(p_fn)
}