Copyright | Aleksandr Krupenkin 2016-2024 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Network.Polkadot.Metadata.Type.Ast
Description
Runtime metadata type AST.
Documentation
type QSelf = (TypeAst, TypeAst) Source #
Qualified type parameter, e.g., Vec<T as SomeTrait>::SomeType.
type PathSegment = (Text, Maybe [TypeAst]) Source #
A segment of a path: an identifier and a set of argument types.
Simple Rust type AST is used for Metadata type representation.
Constructors
Slice !TypeAst | A variable-length slice ([T]). |
Tuple ![TypeAst] | A tuple ((A, B, C, D,...)). |
Array !TypeAst !Int | A fixed length array ([T; n]). |
Path | |