ratatui_toolkit/widgets/markdown_widget/foundation/source/methods/
is_string.rs

1//! Method to check if a `MarkdownSource` is string-based.
2
3use super::super::MarkdownSource;
4
5impl MarkdownSource {
6    /// Check if this source is string-based.
7    pub fn is_string(&self) -> bool {
8        matches!(self, Self::String(_))
9    }
10}