Struct mdxt::RenderResult
source · [−]pub struct RenderResult {
pub content: String,
pub has_collapsible_table: bool,
pub metadata: Option<Yaml>,
pub fenced_code_contents: HashMap<usize, String>,
}Fields
content: Stringhas_collapsible_table: boolThis flag tells you if the document has a collapsible table.
metadata: Option<Yaml>fenced_code_contents: HashMap<usize, String>Some fenced codes have a copy button with them.
Each button has an index of the fenced code.
This hashmap maps the index and the content of the fenced code.
Use this data when writing javascript for the copy buttons.
Auto Trait Implementations
impl RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl UnwindSafe for RenderResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more