pub struct Config {}Expand description
An empty struct of configuration process
Implementations§
Source§impl Config
impl Config
Sourcepub fn get_out_file(out_dir_path: &str, file_name: &str) -> String
pub fn get_out_file(out_dir_path: &str, file_name: &str) -> String
A get method to retrive the complete output path (into image convertion)
Sourcepub fn make_out_dir(out_dir: &String) -> Result<(), String>
pub fn make_out_dir(out_dir: &String) -> Result<(), String>
A method to create an output directory as requested if possible
Sourcepub fn new(args: &[String]) -> Result<DataType, Box<dyn Error>>
pub fn new(args: &[String]) -> Result<DataType, Box<dyn Error>>
The Config trait receives the command line array of inputs and parses it. Expects 3 arguments : Letter selector, input text file, Requested output path to save png images. Returns a Result over DataType.
See lib.rs file for examples
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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