pub struct FileContentsParams {
pub filename: String,
pub option: Option<FileContentsOption>,
}Expand description
Parameters for the LaTeX filecontents environment.
§Example
use rusttex::{FileContentsParams, FileContentsOption};
let params = FileContentsParams::new("example.txt", Some(FileContentsOption::Force));Generated LaTeX:
\begin{filecontents}[force]{example.txt}
...
\end{filecontents}Fields§
§filename: StringThe name of the file to be created or written to.
option: Option<FileContentsOption>Specifies an optional filecontents option.
Implementations§
Source§impl FileContentsParams
impl FileContentsParams
Sourcepub fn new<S: StringOrBuilder>(
filename: S,
option: Option<FileContentsOption>,
) -> Self
pub fn new<S: StringOrBuilder>( filename: S, option: Option<FileContentsOption>, ) -> Self
Auto Trait Implementations§
impl Freeze for FileContentsParams
impl RefUnwindSafe for FileContentsParams
impl Send for FileContentsParams
impl Sync for FileContentsParams
impl Unpin for FileContentsParams
impl UnwindSafe for FileContentsParams
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