Skip to content

Commit

Permalink
Describe getting the base type of a bitflag
Browse files Browse the repository at this point in the history
Duplicates improvement made to Base's Enums: JuliaLang/julia#36057
  • Loading branch information
jmert committed Sep 9, 2020
1 parent 7f6276a commit 5879cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BitFlags.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ end
`BaseType`, which defaults to [`UInt32`](@ref), must be a primitive subtype of `Unsigned`.
Member values can be converted between the bit flag type and `BaseType`. `read` and `write`
perform these conversions automatically.
perform these conversions automatically. In case the bitflag is created with a non-default
`BaseType`, `Integer(value1)` will return the integer `value1` with the type `BaseType`.
To list all the instances of an bitflag use `instances`, e.g.
Expand Down

0 comments on commit 5879cbd

Please sign in to comment.