# std.meta.intToEnum \-\> std.enums.fromInt · gitcafe/zig

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

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

Visibility: public

Requested revision: a365971a337116dd23df2b1bc86468d54885b4b2

Requested commit: a365971a337116dd23df2b1bc86468d54885b4b2

Commit: a365971a337116dd23df2b1bc86468d54885b4b2

Tree: 070dfe739796151d4d1256a3cedd83989609be42

Author: wooster0

Committer: Alex Rønne Petersen

## Message

```
std.meta.intToEnum -> std.enums.fromInt

Also use an optional as the return type instead of an error code.

```

## Parents

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

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