pub struct RenderResult {
pub content: String,
pub has_collapsible_table: bool,
pub has_tooltip: bool,
pub has_sidebar: bool,
pub metadata: Option<Yaml>,
pub fenced_code_contents: HashMap<usize, String>,
}
Fields§
§content: String
§has_collapsible_table: bool
This flag tells you if the document has collapsible tables.
has_tooltip: bool
This flag tells you if the document has tooltips.
This flag tells you if the document has a sidebar.
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 Freeze for RenderResult
impl RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl UnwindSafe for RenderResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more