BinStruct.EnumVariantNameByValue (bin_struct v0.2.16)

Useful in registered_callbacks when library can't achieve automatic type conversion.

iex> enum = [{ 0x01, :a}, {0x02, :b}]
...> BinStruct.EnumVariantNameByValue.find_enum_variant_name_by_value(enum, 0x01)
:a

Summary

Functions

find_enum_variant_name_by_value(list, enum_value)