pub struct Options<'a> {
pub gearboxes: Option<&'a str>,
pub axes: bool,
pub motor: Option<&'a str>,
pub drives: Drives,
pub duties: &'a [(Config, f64)],
}Expand description
What a search tries beside the motors (search): gearboxes a series to try with each motor (fitting_gearboxes),
axes every axis of the catalogue (search_axes), motor one motor of a machine with several (search_motor),
drives which drives with each motor (Drives), and duties the duty mix: each duty’s config and weight (how many
of its cycles to one of weight 1), the first the config searched on; empty for that config alone. With a mix each
candidate runs every duty and is judged by search::mix_verdicts.
Fields§
§gearboxes: Option<&'a str>§axes: bool§motor: Option<&'a str>§drives: Drives§duties: &'a [(Config, f64)]Trait Implementations§
impl<'a> Copy for Options<'a>
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnsafeUnpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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