pub struct BatchConfig {
pub input_dir: PathBuf,
pub output_dir: PathBuf,
pub k_colors: usize,
pub pixel_size_override: Option<f64>,
pub palette: Option<Vec<[u8; 3]>>,
}Fields§
§input_dir: PathBuf§output_dir: PathBuf§k_colors: usize§pixel_size_override: Option<f64>§palette: Option<Vec<[u8; 3]>>Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§impl Debug for BatchConfig
impl Debug for BatchConfig
Source§impl From<&BatchConfig> for Config
Available on non-WebAssembly only.
impl From<&BatchConfig> for Config
Available on non-WebAssembly only.
Source§fn from(config: &BatchConfig) -> Self
fn from(config: &BatchConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnsafeUnpin for BatchConfig
impl UnwindSafe for BatchConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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