Struct gix_config::file::init::Options
source · pub struct Options<'a> {
pub includes: Options<'a>,
pub lossy: bool,
pub ignore_io_errors: bool,
}
Expand description
Options when loading git config using File::from_paths_metadata()
.
Fields§
§includes: Options<'a>
Configure how to follow includes while handling paths.
lossy: bool
If true, only value-bearing parse events will be kept to reduce memory usage and increase performance.
Note that doing so will degenerate write_to()
and strip it off its comments
and additional whitespace entirely, but will otherwise be a valid configuration file.
ignore_io_errors: bool
If true, any IO error happening when reading a configuration file will be ignored.
That way it’s possible to pass multiple files and read as many as possible, to have ‘something’ instead of nothing.
Trait Implementations§
impl<'a> Copy for Options<'a>
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'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