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.
1 parent f491cb4 commit 0d33781Copy full SHA for 0d33781
percent_encoding/lib.rs
@@ -83,6 +83,12 @@ impl AsciiSet {
83
mask[byte as usize / BITS_PER_CHUNK] |= 1 << (byte as usize % BITS_PER_CHUNK);
84
AsciiSet { mask }
85
}
86
+
87
+ pub const fn remove(&self, byte: u8) -> Self {
88
+ let mut mask = self.mask;
89
+ mask[byte as usize / BITS_PER_CHUNK] &= !(1 << (byte as usize % BITS_PER_CHUNK));
90
+ AsciiSet { mask }
91
+ }
92
93
94
/// The set of 0x00 to 0x1F (C0 controls), and 0x7F (DEL).
0 commit comments