pub struct ConfigBuilder<'a> { /* private fields */ }
Expand description
Builder for [crate::config::Config]. Should be used with the Default implementation
of [crate::config::Config].
If the default trait is not used with this builder, some settings may be inaccessible.
For example, output_path
can be set to some value, but not unset.
Builder is consuming.
Implementations
sourceimpl<'a> ConfigBuilder<'a>
impl<'a> ConfigBuilder<'a>
pub fn new() -> Self
pub fn mode(self, mode: InputOutputModeType) -> ConfigBuilder<'a>
pub fn show_license_text_of(
self,
selection: SelectedLicenses
) -> ConfigBuilder<'a>
pub fn select_frame(self, frame: Option<FrameIndex>) -> ConfigBuilder<'a>
pub fn forced_output_format(self, format: &'a str) -> ConfigBuilder<'a>
pub fn disable_automatic_color_type_adjustment(
self,
toggle: bool
) -> ConfigBuilder<'a>
pub fn jpeg_quality(self, quality: u8) -> ConfigBuilder<'a>
pub fn pnm_format_type(self, use_ascii: bool) -> ConfigBuilder<'a>
pub fn gif_repeat(self, repeat: RepeatAnimation) -> ConfigBuilder<'a>
pub fn image_output_format_decider_fallback(
self,
enable_fallback: bool
) -> ConfigBuilder<'a>
pub fn image_operations_program(self, program: Vec<Instr>) -> ConfigBuilder<'a>
pub fn build(self) -> Config<'a>
Trait Implementations
sourceimpl<'a> Debug for ConfigBuilder<'a>
impl<'a> Debug for ConfigBuilder<'a>
sourceimpl<'a> Default for ConfigBuilder<'a>
impl<'a> Default for ConfigBuilder<'a>
sourcefn default() -> ConfigBuilder<'a>
fn default() -> ConfigBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ConfigBuilder<'a>
impl<'a> Send for ConfigBuilder<'a>
impl<'a> Sync for ConfigBuilder<'a>
impl<'a> Unpin for ConfigBuilder<'a>
impl<'a> UnwindSafe for ConfigBuilder<'a>
Blanket Implementations
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ConvUtil for T
impl<T> ConvUtil for T
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.