Skip to content

Commit 458729e

Browse files
author
Alexander Beedie
committed
add inline docs/explanation for NormalizationForm enum values
1 parent b24b958 commit 458729e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ast/value.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,18 @@ impl fmt::Display for DateTimeField {
273273
#[derive(Debug, Clone, PartialEq, Eq, Ord, PartialOrd, Hash)]
274274
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
275275
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
276+
/// The Unicode Standard defines four normalization forms, which are intended to eliminate
277+
/// certain distinctions between visually or functionally identical characters.
278+
///
279+
/// See [Unicode Normalization Forms](https://unicode.org/reports/tr15/) for details.
276280
pub enum NormalizationForm {
281+
/// Canonical Decomposition, followed by Canonical Composition.
277282
NFC,
283+
/// Canonical Decomposition.
278284
NFD,
285+
/// Compatibility Decomposition, followed by Canonical Composition.
279286
NFKC,
287+
/// Compatibility Decomposition.
280288
NFKD,
281289
}
282290

0 commit comments

Comments
 (0)