We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c70c21 commit fe340a8Copy full SHA for fe340a8
1 file changed
datafusion/physical-expr-common/src/metrics/mod.rs
@@ -565,6 +565,10 @@ impl Display for Label {
565
pub struct LabelValue(LabelValueInner);
566
567
/// Internal representation for label names and values.
568
+///
569
+/// `LabelValue` is public because `Label::new` accepts it, but these storage
570
+/// variants are implementation details. Keeping them private prevents external
571
+/// code from constructing or matching on `Static` and `Shared` directly.
572
#[derive(Clone)]
573
enum LabelValueInner {
574
Static(&'static str),
0 commit comments