pub enum ProtocolParseError {
NotAList,
NotProtocol,
NoThenClauses,
ThenTooFew,
ExpectedThen {
found: String,
},
InvalidNodeRef {
detail: String,
},
GroupTooFew {
kind: String,
},
GroupNonSymbol {
kind: String,
},
RepeatCountNotNat {
found: String,
},
RepeatEmptyBody,
RepeatContainsBegin,
RepeatBudgetExceeded {
steps: u64,
},
}Expand description
Errors from parsing a (protocol ...) declaration.
Variants§
NotAList
Top-level form is not a list.
NotProtocol
First element is not protocol.
NoThenClauses
No (then ...) declarations found.
ThenTooFew
A (then ...) clause has fewer than 2 node-refs.
ExpectedThen
Expected a (then ...) clause but found something else.
InvalidNodeRef
Node-ref is not a valid symbol, (any ...), or (all ...).
GroupTooFew
(any ...) or (all ...) has fewer than 2 arguments.
GroupNonSymbol
(any ...) or (all ...) contains a non-symbol argument.
RepeatCountNotNat
(repeat ...) count is not a nat (CON-701): a positive integer
atom. Zero, negatives, and non-integer atoms are all rejected.
RepeatEmptyBody
(repeat ...) has no protocol-steps in its body (CON-701 requires
protocol-step+).
RepeatContainsBegin
(repeat ...) body references begin; the protocol root is a
keyword, not a repeatable step.
RepeatBudgetExceeded
(repeat ...) expansion (nested repeats multiply) exceeds the
absolute R2 ceiling — rejected before materialisation.
Trait Implementations§
Source§impl Clone for ProtocolParseError
impl Clone for ProtocolParseError
Source§impl Debug for ProtocolParseError
impl Debug for ProtocolParseError
Source§impl Display for ProtocolParseError
impl Display for ProtocolParseError
impl Eq for ProtocolParseError
Source§impl PartialEq for ProtocolParseError
impl PartialEq for ProtocolParseError
impl StructuralPartialEq for ProtocolParseError
Auto Trait Implementations§
impl Forget for ProtocolParseError
impl Freeze for ProtocolParseError
impl Move for ProtocolParseError
impl RefUnwindSafe for ProtocolParseError
impl Send for ProtocolParseErrorwhere
RawVecInner: Send,
impl Sync for ProtocolParseErrorwhere
RawVecInner: Sync,
impl Unpin for ProtocolParseError
impl UnsafeUnpin for ProtocolParseError
impl UnwindSafe for ProtocolParseErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.