2
2
//!
3
3
//! ## Model
4
4
//! A [`Symbol`] is a collection of one or more _variants_. Each variant is
5
- //! identified by a set of [_modifiers_](ModifierSet) and has a single character
6
- //! as its value. The modifiers themselves can in principle be any non-empty
7
- //! strings that don't contain the character `.`, but codex only defines ones
8
- //! that are entirely made of ASCII alphabetical characters.
5
+ //! identified by a set of [_modifiers_](ModifierSet) and has a string as its
6
+ //! value. The modifiers themselves can in principle be any non-empty strings
7
+ //! that don't contain the character `.`, but codex only defines ones that are
8
+ //! entirely made of ASCII alphabetical characters.
9
9
10
10
pub use self :: shared:: ModifierSet ;
11
11
@@ -68,7 +68,7 @@ pub enum Symbol {
68
68
}
69
69
70
70
impl Symbol {
71
- /// Get the symbol's character for a given set of modifiers, alongside an optional deprecation
71
+ /// Get the symbol's variant for a given set of modifiers, alongside an optional deprecation
72
72
/// message.
73
73
pub fn get ( & self , modifs : ModifierSet < & str > ) -> Option < ( & ' static str , Option < & str > ) > {
74
74
match self {
@@ -79,9 +79,9 @@ impl Symbol {
79
79
}
80
80
}
81
81
82
- /// The characters that are covered by this symbol.
82
+ /// Iterate over the variants of this symbol.
83
83
///
84
- /// Each variant is represented by a tuple `(modifiers, character , deprecation)`.
84
+ /// Each variant is represented by a tuple `(modifiers, value , deprecation)`.
85
85
pub fn variants (
86
86
& self ,
87
87
) -> impl Iterator < Item = ( ModifierSet < & str > , & ' static str , Option < & str > ) > {
0 commit comments