pub trait Porcelain: Sized {
// Required method
fn porcelain_if(self, value: bool) -> Self;
// Provided method
fn porcelain(self) -> Self { ... }
}Expand description
Trait for git command builders that support porcelain output.
Provides the porcelain and porcelain_if methods to set --porcelain.
Required Methods§
Sourcefn porcelain_if(self, value: bool) -> Self
fn porcelain_if(self, value: bool) -> Self
Conditionally enable porcelain output (--porcelain).
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.