[][src]Struct texrender::TexRender

pub struct TexRender { /* fields omitted */ }

Implementations

impl TexRender[src]

pub fn from_bytes(source: Vec<u8>) -> TexRender[src]

Create a new tex render configuration using raw input bytes as the source file.

pub fn from_file<P: AsRef<Path>>(source: P) -> Result<TexRender>[src]

Create a new tex render configuration from an input latex file.

pub fn add_asset_from_bytes<S: AsRef<OsStr>>(
    &mut self,
    filename: S,
    bytes: &[u8]
) -> Result<()>
[src]

Adds an asset to the texrender.

pub fn add_asset_from_file<P: AsRef<Path>>(&mut self, path: P) -> Result<()>[src]

Adds an assets to the texrender from a file.

Panics

Panics if the passed-in path has no proper filename.

pub fn add_texinput<P: Into<PathBuf>>(&mut self, input_path: P) -> &mut Self[src]

Add a path to list of texinputs.

pub fn render(&self) -> Result<Vec<u8>, RenderingError>[src]

Render the given source as PDF.

Trait Implementations

impl Debug for TexRender[src]

Auto Trait Implementations

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.