pub struct Render {
pub html_style: String,
pub html_type: CarbonHTML,
pub file_title: Option<String>,
pub line_number: Option<usize>,
/* private fields */
}
Fields§
§html_style: String
§html_type: CarbonHTML
§file_title: Option<String>
§line_number: Option<usize>
Implementations§
Source§impl Render
impl Render
pub fn render_terminal(&self, input: &str) -> Result<String, CarbonError>
pub fn render_latex(&self, input: &str) -> Result<String, CarbonError>
pub fn render_html(&self, input: &str) -> Result<String, CarbonError>
Source§impl Render
impl Render
pub fn set_theme(&mut self, s: &str) -> CarbonResult<()>
pub fn set_syntax(&mut self, s: &str) -> CarbonResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Render
impl RefUnwindSafe for Render
impl Send for Render
impl Sync for Render
impl Unpin for Render
impl UnwindSafe for Render
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