ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Parsed cache getter for CacheState.

use crate::widgets::markdown_widget::state::cache_state::{CacheState, ParsedCache};

impl CacheState {
    /// Get a reference to the parsed cache if it exists.
    pub fn parsed_cache(&self) -> Option<&ParsedCache> {
        self.parsed.as_ref()
    }
}