We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d4d571 commit 1dd745eCopy full SHA for 1dd745e
src/unicode_range.rs
@@ -14,6 +14,7 @@ use tokenizer::{Token, NumericValue};
14
/// One contiguous range of code points.
15
///
16
/// Can not be empty. Can represent a single code point when start == end.
17
+#[derive(PartialEq, Eq, Clone, Hash)]
18
pub struct UnicodeRange {
19
/// Inclusive start of the range. In [0, end].
20
pub start: u32,
@@ -204,6 +205,12 @@ fn consume_question_marks(text: &mut &[u8]) -> usize {
204
205
question_marks
206
}
207
208
+impl fmt::Debug for UnicodeRange {
209
+ fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
210
+ self.to_css(formatter)
211
+ }
212
+}
213
+
214
impl ToCss for UnicodeRange {
215
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
216
dest.write_str("U+")?;
0 commit comments