pub struct Options {
pub parent: PathBuf,
pub candidate: PathBuf,
pub inputs: Vec<PathBuf>,
pub unknown: String,
pub min_improvement: f64,
pub horizon: f64,
pub distributions: u64,
pub max_slowdown: f64,
pub passes: usize,
}Fields§
§parent: PathBuf§candidate: PathBuf§inputs: Vec<PathBuf>Held-out inputs, each encoded as one message.
unknown: String§min_improvement: f64Least net saving, as a share of the parent’s bytes, to approve.
horizon: f64How much traffic the candidate will carry, as a multiple of the inputs.
distributions: u64How many times the candidate vocabulary has to be sent.
max_slowdown: f64Most the candidate may slow encoding, as a ratio.
passes: usizeTimed passes over the inputs with each vocabulary, taken in alternating order; the least time of each is used.
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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> 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