pi_proc_macros 0.1.0

Utils Proc Macros
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 5.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 282.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • github:gaiaworld:dev zmaxleo

定义了一个trait Null, 该trait提供is_null方法用于判空。

u8u16u32, None等类型实现了Null, 如果你有一个u32类型的属性可能为空,并且您保证该数字不会达到它的最大值,那么你无需使用Option<u32>, 你可以用u32的最大值作为nullis_null发现self为u32::MAX时,将返回true