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