[−][src]Struct texrender::TexRender
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]
&mut self,
filename: S,
bytes: &[u8]
) -> Result<()>
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
Auto Trait Implementations
impl RefUnwindSafe for TexRender
impl Send for TexRender
impl Sync for TexRender
impl Unpin for TexRender
impl UnwindSafe for TexRender
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,