pub struct FileToMap<'a> { /* private fields */ }
Expand description
File To Map struct
Implementations§
Source§impl<'a> FileToMap<'a>
impl<'a> FileToMap<'a>
Sourcepub fn new(file_name: &'a str) -> Self
pub fn new(file_name: &'a str) -> Self
Creates a new struct. The file won’t be parsed until calling the build function.
Sourcepub fn set_key_value_separator(self, sep: &'a str) -> Self
pub fn set_key_value_separator(self, sep: &'a str) -> Self
Changes the key-value pair separator. The default is =
.
Sourcepub fn set_pair_separator(self, sep: &'a str) -> Self
pub fn set_pair_separator(self, sep: &'a str) -> Self
Changes the pairs separator. The default is just a new line, but can be changed to any string.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FileToMap<'a>
impl<'a> RefUnwindSafe for FileToMap<'a>
impl<'a> Send for FileToMap<'a>
impl<'a> Sync for FileToMap<'a>
impl<'a> Unpin for FileToMap<'a>
impl<'a> UnwindSafe for FileToMap<'a>
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