Expand description
Core specification traits for Vest combinators.
Re-exports§
pub use crate::core::fns::ByteLenFnSpec;pub use crate::core::fns::ParserFnSpec;pub use crate::core::fns::SerializerDPSFnSpec;pub use crate::core::fns::SerializerFnSpec;
Traits§
- Admits
Unique Val - Combinators whose consistency admits at most one value.
- Bytes
Combinator - Marker for combinators whose corresponding values are raw bytes (
Seq<u8>). - Consistency
- Value well-formedness according to a format’s specification.
- Good
Serializer - A well-behaved serializer.
- MinMax
Byte Len - Denotes the min/max byte length of a value w.r.t. a combinator’s format spec.
- NonTail
Fmt - A non-tail format combinator would allow for things to be serialized after itself.
- Safe
Parser - Parser safety.
- Sound
Parser - Parser soundness.
- Spec
Byte Len - Denotes the byte length of a value w.r.t. a combinator’s format spec.
- Spec
Combinator - Marker trait for all specification traits bundled together.
- Spec
Parser - Parser specification.
- Spec
Pred - Spec-level predicate abstraction.
- Spec
Serializer - Serializer specification.
- Spec
Serializer Dps - Destination-passing style (DPS) serializer specification.
- Static
Byte Len - Static byte length for fixed-size combinators.
- Value
Byte Len - Like
SpecByteLen, but the byte length can be computed from the value alone, without needing to refer to the combinator/format’s parameters or internal states (self).
Functions§
Type Aliases§
- Pred
FnSpec - A spec-level predicate function type alias.