Skip to content

Commit fe340a8

Browse files
committed
Document private label value storage
1 parent 3c70c21 commit fe340a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • datafusion/physical-expr-common/src/metrics

datafusion/physical-expr-common/src/metrics/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ impl Display for Label {
565565
pub struct LabelValue(LabelValueInner);
566566

567567
/// 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.
568572
#[derive(Clone)]
569573
enum LabelValueInner {
570574
Static(&'static str),

0 commit comments

Comments
 (0)