# Functions
And groups conditions with the AND operator.
FixedError is a hook returning a fixed error.
HasAddedFields is a condition validating `.AddedField` on fields.
HasClearedFields is a condition validating `.FieldCleared` on fields.
HasFields is a condition validating `.Field` on fields.
HasOp is a condition testing mutation operation.
If executes the given hook under condition.
NewChain creates a new chain of hooks.
Not negates a given condition.
On executes the given hook only for the given operation.
Or groups conditions with the OR operator.
Reject returns a hook that rejects all operations that match op.
Unless skips the given hook only for the given operation.
# Type aliases
Condition is a hook condition function.
The CouponWithdrawFunc type is an adapter to allow the use of ordinary function as CouponWithdraw mutator.
The GoodLedgerFunc type is an adapter to allow the use of ordinary function as GoodLedger mutator.
The GoodStatementFunc type is an adapter to allow the use of ordinary function as GoodStatement mutator.
The LedgerFunc type is an adapter to allow the use of ordinary function as Ledger mutator.
The LedgerLockFunc type is an adapter to allow the use of ordinary function as LedgerLock mutator.
The ProfitFunc type is an adapter to allow the use of ordinary function as Profit mutator.
The SimulateLedgerFunc type is an adapter to allow the use of ordinary function as SimulateLedger mutator.
The SimulateProfitFunc type is an adapter to allow the use of ordinary function as SimulateProfit mutator.
The SimulateStatementFunc type is an adapter to allow the use of ordinary function as SimulateStatement mutator.
The StatementFunc type is an adapter to allow the use of ordinary function as Statement mutator.
The UnsoldStatementFunc type is an adapter to allow the use of ordinary function as UnsoldStatement mutator.
The WithdrawFunc type is an adapter to allow the use of ordinary function as Withdraw mutator.