Skip to content

Commit 12c085a

Browse files
Inline u8::is_utf8_char_boundary
1 parent 2d37f38 commit 12c085a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/num/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ impl u8 {
809809
ascii::escape_default(self)
810810
}
811811

812+
#[inline]
812813
pub(crate) const fn is_utf8_char_boundary(self) -> bool {
813814
// This is bit magic equivalent to: b < 128 || b >= 192
814815
(self as i8) >= -0x40

0 commit comments

Comments
 (0)