# std.fmt.format: handle non-pointer struct/union/enum · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/820bf054ea01070b64d6cabf2f20e747909e2611)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 820bf054ea01070b64d6cabf2f20e747909e2611

Requested commit: 820bf054ea01070b64d6cabf2f20e747909e2611

Commit: 820bf054ea01070b64d6cabf2f20e747909e2611

Tree: 14314c97268178ec760d6b9849c08e18c680ef18

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fmt.format: handle non-pointer struct/union/enum

Also adds support for printing structs via reflection.
The case when structs have pointers to themselves is not
handled yet.

closes #1380

```

## Parents

- [b8ce8f219c48ae833199130ce575241f848d690b](https://git.cafe/gitcafe/zig/commit/b8ce8f219c48ae833199130ce575241f848d690b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/820bf054ea01070b64d6cabf2f20e747909e2611?format=markdown)
