[][src]Struct carbon_lib::Render

pub struct Render {
    pub html_style: String,
    pub html_type: CarbonHTML,
    pub file_title: Option<String>,
    pub line_number: Option<usize>,
    // some fields omitted
}

Fields

html_style: Stringhtml_type: CarbonHTMLfile_title: Option<String>line_number: Option<usize>

Implementations

impl Render[src]

pub fn render_terminal(&self, input: &str) -> Result<String, CarbonError>[src]

pub fn render_latex(&self, input: &str) -> Result<String, CarbonError>[src]

pub fn render_html(&self, input: &str) -> Result<String, CarbonError>[src]

impl Render[src]

pub fn set_theme(&mut self, s: &str) -> CarbonResult<()>[src]

pub fn set_syntax(&mut self, s: &str) -> CarbonResult<()>[src]

Trait Implementations

impl Default for Render[src]

Auto Trait Implementations

impl RefUnwindSafe for Render

impl Send for Render

impl Sync for Render

impl Unpin for Render

impl UnwindSafe for Render

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.