pi_sinfo 0.2.1

It is used to describe the 'structure', that is, the meta information of the structure
docs.rs failed to build pi_sinfo-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: pi_sinfo-0.2.0

用于描述结构体,即结构体的元信息

结构体类型包含下列几种信息:

  • 结构体的名称
  • 结构体的名称所计算出来的hash值
  • 结构体包含的字段
  • 结构体上包含的注解

其中,字段又被包含下列几种信息:

  • 字段名称
  • 字段类型
  • 字段上的注解

通常本库用于结构体数据的反序列化过程。StructInfo本身支持序列化成二进制,和反序列化。 一个结构体的实例,可以被序列化为一个十分紧凑的数据,在序列化过程中,可不含每个字段的类型。 当其被反序列化时,可以根据元信息中描述的字段类型,来反序列化