File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use tokenizer::{Token, NumericValue};
14
14
/// One contiguous range of code points.
15
15
///
16
16
/// Can not be empty. Can represent a single code point when start == end.
17
+ #[ derive( PartialEq , Eq , Clone , Hash ) ]
17
18
pub struct UnicodeRange {
18
19
/// Inclusive start of the range. In [0, end].
19
20
pub start : u32 ,
@@ -204,6 +205,12 @@ fn consume_question_marks(text: &mut &[u8]) -> usize {
204
205
question_marks
205
206
}
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
+
207
214
impl ToCss for UnicodeRange {
208
215
fn to_css < W > ( & self , dest : & mut W ) -> fmt:: Result where W : fmt:: Write {
209
216
dest. write_str ( "U+" ) ?;
You can’t perform that action at this time.
0 commit comments