[−][src]Struct naut::cli::config::ConfigBuilder
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
impl<'a> ConfigBuilder<'a>
[src]
pub fn new() -> Self
[src]
pub fn mode(self, mode: InputOutputModeType) -> ConfigBuilder<'a>
[src]
pub fn show_license_text_of(
self,
selection: SelectedLicenses
) -> ConfigBuilder<'a>
[src]
self,
selection: SelectedLicenses
) -> ConfigBuilder<'a>
pub fn select_frame(self, frame: FrameIndex) -> ConfigBuilder<'a>
[src]
pub fn forced_output_format(self, format: &'a str) -> ConfigBuilder<'a>
[src]
pub fn disable_automatic_color_type_adjustment(
self,
toggle: bool
) -> ConfigBuilder<'a>
[src]
self,
toggle: bool
) -> ConfigBuilder<'a>
pub fn jpeg_quality(self, quality: u8) -> ConfigBuilder<'a>
[src]
pub fn pnm_format_type(self, use_ascii: bool) -> ConfigBuilder<'a>
[src]
pub fn image_output_format_decider_fallback(
self,
enable_fallback: bool
) -> ConfigBuilder<'a>
[src]
self,
enable_fallback: bool
) -> ConfigBuilder<'a>
pub fn image_operations_program(self, program: Vec<Instr>) -> ConfigBuilder<'a>
[src]
pub fn build(self) -> Config<'a>
[src]
Trait Implementations
impl<'a> Debug for ConfigBuilder<'a>
[src]
impl<'a> Default for ConfigBuilder<'a>
[src]
pub fn default() -> ConfigBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ConfigBuilder<'a>
[src]
impl<'a> Send for ConfigBuilder<'a>
[src]
impl<'a> Sync for ConfigBuilder<'a>
[src]
impl<'a> Unpin for ConfigBuilder<'a>
[src]
impl<'a> UnwindSafe for ConfigBuilder<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,