pub enum PutSlotError {
NullPointer,
InvalidTarget,
SlotNotFound,
Type,
Range,
AllowedValues,
Cardinality,
AllowedClasses,
Evaluation,
RuleNetwork,
Unknown(u32),
}Expand description
Why writing a slot failed.
The constraint variants report which facet of the slot’s declared constraints the value violated.
Variants§
NullPointer
A required argument was NULL; a bug in this crate.
InvalidTarget
The builder, modifier, or instance is not in a state that accepts slot writes.
SlotNotFound
The target has no slot of that name.
Type
The value’s type is not among the slot’s allowed types.
Range
A numeric value falls outside the slot’s declared range.
AllowedValues
The value is not among the slot’s allowed values.
Cardinality
A multifield value’s length violates the slot’s cardinality.
AllowedClasses
An instance value’s class is not among the slot’s allowed classes.
Evaluation
Evaluating the value raised an error.
RuleNetwork
An evaluation error occurred in the rule network.
Unknown(u32)
A code this crate does not recognise, reported rather than silently treated as success. Seeing one means CLIPS gained a code since 6.4.2 or the declaration is wrong.