pub struct ConversionConfig {
pub autocrlf: AutoCrlf,
pub eol: CoreEol,
pub safecrlf: SafeCrlf,
pub command_runner: Arc<dyn CommandRunner>,
}Expand description
Global conversion settings derived from config.
Fields§
§autocrlf: AutoCrlfautocrlf field.
eol: CoreEoleol field.
safecrlf: SafeCrlfsafecrlf field.
command_runner: Arc<dyn CommandRunner>Subprocess runner for clean/smudge filters and iconv helpers.
Implementations§
Source§impl ConversionConfig
impl ConversionConfig
Sourcepub fn from_config(config: &ConfigSet) -> Self
pub fn from_config(config: &ConfigSet) -> Self
Load conversion settings from a ConfigSet.
Sourcepub fn from_config_with_runner(
config: &ConfigSet,
command_runner: Arc<dyn CommandRunner>,
) -> Self
pub fn from_config_with_runner( config: &ConfigSet, command_runner: Arc<dyn CommandRunner>, ) -> Self
Like Self::from_config with an explicit filter/hook subprocess runner.
Trait Implementations§
Source§impl Clone for ConversionConfig
impl Clone for ConversionConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ConversionConfig
impl !UnwindSafe for ConversionConfig
impl Freeze for ConversionConfig
impl Send for ConversionConfig
impl Sync for ConversionConfig
impl Unpin for ConversionConfig
impl UnsafeUnpin for ConversionConfig
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