[][src]Function syntax::parse::lexer::comments::all_whitespace

fn all_whitespace(s: &str, col: CharPos) -> Option<usize>
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Returns None if the first col chars of s contain a non-whitespace char. Otherwise returns Some(k) where k is first char offset after that leading whitespace. Note k may be outside bounds of s.