Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ is_linebreak
Function
is_linebreak
crates/sre_engine/src/string.rs:370–372 ·
view source on GitHub ↗
(ch: u32)
Source
from the content-addressed store, hash-verified
368
}
369
#[inline]
370
pub(crate) const fn is_linebreak(ch: u32) -> bool {
371
ch ==
'\n'
as u32
372
}
373
#[inline]
374
pub fn lower_ascii(ch: u32) -> u32 {
375
u8::try_from(ch)
Callers
3
at_linebreak
Method · 0.85
at
Function · 0.85
category
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected