pub struct TwoDOptions {
pub algorithm: TwoDAlgorithm,
pub multistart_runs: usize,
pub beam_width: usize,
pub guillotine_required: bool,
pub seed: Option<u64>,
}Expand description
Options controlling how solve_2d runs.
Fields§
§algorithm: TwoDAlgorithmAlgorithm to dispatch to.
multistart_runs: usizeNumber of multistart restarts used by randomized strategies.
beam_width: usizeBeam width for the guillotine beam search backend.
guillotine_required: boolWhether layouts must be guillotine-compatible.
seed: Option<u64>Optional seed for reproducible randomized algorithms.
Trait Implementations§
Source§impl Clone for TwoDOptions
impl Clone for TwoDOptions
Source§fn clone(&self) -> TwoDOptions
fn clone(&self) -> TwoDOptions
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 TwoDOptions
impl Debug for TwoDOptions
Source§impl Default for TwoDOptions
impl Default for TwoDOptions
Source§impl<'de> Deserialize<'de> for TwoDOptions
impl<'de> Deserialize<'de> for TwoDOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TwoDOptions
impl PartialEq for TwoDOptions
Source§impl Serialize for TwoDOptions
impl Serialize for TwoDOptions
impl Eq for TwoDOptions
impl StructuralPartialEq for TwoDOptions
Auto Trait Implementations§
impl Freeze for TwoDOptions
impl RefUnwindSafe for TwoDOptions
impl Send for TwoDOptions
impl Sync for TwoDOptions
impl Unpin for TwoDOptions
impl UnsafeUnpin for TwoDOptions
impl UnwindSafe for TwoDOptions
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