#[non_exhaustive]pub struct MoshOptions {
pub min_rate: u16,
pub max_rate: u16,
pub pixelation: u8,
pub line_shift: f64,
pub reverse: f64,
pub flip: f64,
pub channel_swap: f64,
pub channel_shift: f64,
pub ansi: bool,
pub seed: u64,
}Expand description
Processing options.
Minimal pixelation value is 1 (OFF).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_rate: u16Minimal amount of chunks to process.
max_rate: u16Maximal amount of chunks to process.
pixelation: u8Pixelation’s intensity.
line_shift: f64Chance of line shift.
reverse: f64Chance of reverse.
flip: f64Chance of flip.
channel_swap: f64Chance of channel swap.
channel_shift: f64Chance of channel shift.
ansi: boolConvert to ANSI color palette.
seed: u64Random seed.
Implementations§
Source§impl MoshOptions
impl MoshOptions
Trait Implementations§
Source§impl Clone for MoshOptions
impl Clone for MoshOptions
Source§fn clone(&self) -> MoshOptions
fn clone(&self) -> MoshOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MoshOptions
impl Debug for MoshOptions
Auto Trait Implementations§
impl Freeze for MoshOptions
impl RefUnwindSafe for MoshOptions
impl Send for MoshOptions
impl Sync for MoshOptions
impl Unpin for MoshOptions
impl UnwindSafe for MoshOptions
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