structural-typing 0.1.7

Type-level field presence tracking for Rust structs, inspired by TypeScript
Documentation
1
2
3
4
5
error: #[structural] requires at least one field
 --> tests/ui/empty_struct_rejected.rs:4:1
  |
4 | struct Empty {}
  | ^^^^^^^^^^^^^^^