We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebd789f + efffb61 commit 54d36feCopy full SHA for 54d36fe
idna/src/uts46.rs
@@ -23,7 +23,7 @@ include!("uts46_mapping_table.rs");
23
pub static PUNYCODE_PREFIX: &'static str = "xn--";
24
25
26
-#[derive(Debug)]
+#[derive(Clone, Copy, Debug)]
27
struct StringTableSlice {
28
// Store these as separate fields so the structure will have an
29
// alignment of 1 and thus pack better into the Mapping enum, below.
@@ -41,7 +41,7 @@ fn decode_slice(slice: &StringTableSlice) -> &'static str {
41
}
42
43
#[repr(u8)]
44
45
enum Mapping {
46
Valid,
47
Ignored,
@@ -52,6 +52,7 @@ enum Mapping {
52
DisallowedStd3Mapped(StringTableSlice),
53
54
55
+#[derive(Clone, Copy)]
56
struct Range {
57
from: char,
58
to: char,
0 commit comments