Alchemy.Permissions.to_bitset
You're seeing just the function
to_bitset
, go back to Alchemy.Permissions module for more information.
Link to this function
to_bitset(list)
Specs
to_bitset([permission()]) :: Integer
Converts a list of permission atoms into a bitset. This is the reverse operation of to_list/1
.
Examples
bitset = Permissions.to_bitset([:send_messages, :speak])