ratatui_toolkit/widgets/markdown_widget/state/source_state/methods/line_count.rs
1//! Line count method for SourceState.
2
3use crate::widgets::markdown_widget::state::source_state::SourceState;
4
5impl SourceState {
6 /// Get the line count of the source content.
7 ///
8 /// # Returns
9 ///
10 /// The number of lines in the source content.
11 pub fn line_count(&self) -> usize {
12 self.line_count
13 }
14}