pub struct DiffRendererConfig {
pub command: Vec<String>,
pub features: Vec<String>,
pub feature_keys: BTreeMap<String, char>,
pub theme: Option<String>,
pub builtin_themes: Vec<String>,
pub color_mode: Option<ColorMode>,
pub features_in_force: Vec<String>,
}Fields§
§command: Vec<String>Renderer command as [executable, ...args], set by delta --gitu to
itself rather than read from config. It receives a unified diff on stdin
and emits ANSI-colored output carrying OSC-1717 diff-line metadata.
features: Vec<String>Named renderer features offered by renderer_features, to turn on and
off while viewing a diff.
feature_keys: BTreeMap<String, char>Keys that toggle a feature from renderer_features before anything is
typed to filter it, by feature.
theme: Option<String>The theme overlaid on the user’s own delta configuration: a feature that
sets dark or light, as delta defines a theme.
builtin_themes: Vec<String>delta’s builtin features to offer as themes after those in git config,
for either mode, such as diff-so-fancy.
color_mode: Option<ColorMode>The mode delta renders in, set by delta --gitu, which settles it before
gitu starts. None when gitu is not run by delta.
features_in_force: Vec<String>The features delta uses with the user’s own configuration, by delta’s
name, set by delta --gitu, which resolves them before gitu starts. Empty
when gitu is not run by delta.
Trait Implementations§
Source§impl Debug for DiffRendererConfig
impl Debug for DiffRendererConfig
Source§impl Default for DiffRendererConfig
impl Default for DiffRendererConfig
Source§impl<'de> Deserialize<'de> for DiffRendererConfig
impl<'de> Deserialize<'de> for DiffRendererConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Forget for DiffRendererConfig
impl Freeze for DiffRendererConfig
impl RefUnwindSafe for DiffRendererConfig
impl Send for DiffRendererConfig
impl Sync for DiffRendererConfig
impl Unpin for DiffRendererConfig
impl UnsafeUnpin for DiffRendererConfig
impl UnwindSafe for DiffRendererConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more