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 0d33781 commit 976341eCopy full SHA for 976341e
percent_encoding/lib.rs
@@ -68,7 +68,7 @@ const BITS_PER_CHUNK: usize = 8 * std::mem::size_of::<Chunk>();
68
impl AsciiSet {
69
/// Called with UTF-8 bytes rather than code points.
70
/// Not used for non-ASCII bytes.
71
- const fn contains(&self, byte: u8) -> bool {
+ pub const fn contains(&self, byte: u8) -> bool {
72
let chunk = self.mask[byte as usize / BITS_PER_CHUNK];
73
let mask = 1 << (byte as usize % BITS_PER_CHUNK);
74
(chunk & mask) != 0
0 commit comments