Expand description
This module contains types and functions for working with constants.
- See
decode_constantanddecode_constant_with_infoto decode constants - See
ConstantTypeInfofor the underlying trait which extracts constant information from metadata. - See
ConstantEntryInfofor a underlying trait which provides information about the available constants.
Structs§
- Constant
Info - Information about a Constant.
Enums§
- Constant
Decode Error - An error returned trying to decode a constant.
- Constant
Info Error - An error returned trying to access Constant information.
Traits§
- Constant
Entry Info - This can be implemented for anything capable of providing information about the available Constants
- Constant
Type Info - This can be implemented for anything capable of providing Constant information.
Functions§
- decode_
constant - Decode a constant from the provided information.
- decode_
constant_ with_ info - Decode a constant given the
ConstantInfoand a resolver to resolve the constant type.
Type Aliases§
- Constant
Entry - An entry denoting a pallet or a constant name.