alamb commented on code in PR #8663:
URL: https://github.com/apache/arrow-rs/pull/8663#discussion_r2461021664
##########
parquet/src/parquet_macros.rs:
##########
@@ -79,6 +79,35 @@ macro_rules! thrift_enum {
Ok(field_id)
}
}
+
+ impl $identifier {
+ #[allow(deprecated)]
+ #[doc = "Returns a slice containing every variant of this enum."]
+ #[allow(dead_code)]
+ pub const VARIANTS: &'static [Self] = &[
Review Comment:
this is quite cool
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]