Expand description
Interface crate to unify how operations’ costs are passed and retrieved.
Re-exports§
pub use context::CostContext;pub use context::CostResult;pub use context::CostsExt;
Modules§
- context
- Cost Contexts
- error
- Cost Errors
- storage_
cost - Storage Costs
Macros§
- cost_
return_ on_ error - Macro to achieve kind of what the
?operator does, but withCostContexton top. - cost_
return_ on_ error_ default - Macro to achieve kind of what the
?operator does, but withCostContexton top. The difference between this macro andcost_return_on_erroris that it is intended to be used onResultrather thanCostContext<Result<..>>, so no costs will be added except previously accumulated. The error case returns a defaultOperationCost. - cost_
return_ on_ error_ into - Macro to achieve kind of what the
?operator does, but withCostContexton top. - cost_
return_ on_ error_ into_ default - Macro to achieve kind of what the
?operator does, but withCostContexton top. The difference between this macro andcost_return_on_erroris that it is intended to be used onResultrather thanCostContext<Result<..>>, so no costs will be added except previously accumulated. The error case returns a defaultOperationCost. - cost_
return_ on_ error_ into_ no_ add - Macro to achieve kind of what the
?operator does, but withCostContexton top. The difference between this macro andcost_return_on_erroris that it is intended to be used onResultrather thanCostContext<Result<..>>, so no costs will be added except previously accumulated. - cost_
return_ on_ error_ no_ add - Macro to achieve kind of what the
?operator does, but withCostContexton top. The difference between this macro andcost_return_on_erroris that it is intended to be used onResultrather thanCostContext<Result<..>>, so no costs will be added except previously accumulated.
Structs§
- Operation
Cost - Piece of data representing affected computer resources (approximately).
Enums§
- Tree
Cost Type - The tree cost type
Type Aliases§
- Child
KeyLength - Child key length
- Child
SumLength - Child sum length
- Children
Sizes - Children sizes
- Children
Sizes With IsSum Tree - Children sizes starting with if we are in a sum tree
- Children
Sizes With Value - Children sizes starting with a value
- Feature
SumLength - Feature sum length