mirror of
https://github.com/danog/strum.git
synced 2024-12-04 02:17:56 +01:00
aeaa19ad86
* Add EnumConstIndex * Get working with discriminants * Remove unused/(unneeded?) features * Rename to EnumIndex and index(..). Make const_index conditional * Get repr(..) working * Fix issue to support rust 1.32 * Switch from VARIANT# to {ENUM}_{VARIANT} for variant constant names * Expose constants as part of implementation * Add discriminant error messages. Cargo fmt my code * Add rustversion to make compilation conditional on 1.46 * Handle expr discriminants * Fix generics handling * Make constants always available. No need to only expose them when const_index is defined * Change to FromDiscriminant. Only output a single function * Don't make constants accessible * Make rustversion a dev dependency in strum-tests due to upstream change * Cleanup doc tests for const * Rename to FromRepr/from_repr |
||
---|---|---|
.. | ||
as_ref_no_strum.rs | ||
as_ref_str.rs | ||
display.rs | ||
enum_count.rs | ||
enum_discriminants.rs | ||
enum_iter.rs | ||
enum_message.rs | ||
enum_props.rs | ||
enum_variant_names.rs | ||
from_repr.rs | ||
from_str.rs | ||
serialize_all.rs | ||
to_string.rs |