We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5a2f5c commit d913518Copy full SHA for d913518
crates/utf8-converter/src/lib.rs
@@ -1,4 +1,5 @@
1
//! Position calculator to convert between byte, char, and line positions.
2
+#![deny(missing_docs)]
3
4
use std::ops::Range;
5
@@ -125,6 +126,7 @@ impl Utf8Converter {
125
126
self.line_begins.len() as u32 - 1
127
}
128
129
+ /// Returns true if the specified line is empty except for whitespace.
130
pub fn only_whitespaces(&self, line_number: u32) -> bool {
131
self.whitespace_only
132
.get(line_number as usize)
0 commit comments