We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14823b4 commit 21def52Copy full SHA for 21def52
src/ext.rs
@@ -39,11 +39,13 @@ impl<T> Pointer for *mut T {
39
}
40
41
/// A trait for adding some helper routines to raw bytes.
42
+#[cfg(test)]
43
pub(crate) trait Byte {
44
/// Converts this byte to a `char` if it's ASCII. Otherwise panics.
45
fn to_char(self) -> char;
46
47
48
49
impl Byte for u8 {
50
fn to_char(self) -> char {
51
assert!(self.is_ascii());
0 commit comments