pub enum ScheduleKind {
Diagonal,
Square,
}Expand description
The schedules available, as a parameter.
Variants§
Diagonal
(discrepancy, split) pairs in order of increasing sum:
(0,0), (0,1) (1,0), (0,2) (1,1) (2,0), …
Square
Grows a square: every budget with max(d, s) = k before any with
k + 1, each shell ending on (k, k), which contains every budget
before it.
Implementations§
Source§impl ScheduleKind
impl ScheduleKind
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The spelling used on the command line and in the Python API.
Sourcepub fn build(self, bounds: ScheduleBounds) -> Box<dyn BudgetSchedule>
pub fn build(self, bounds: ScheduleBounds) -> Box<dyn BudgetSchedule>
Creates the schedule for a problem with the given bounds.
Trait Implementations§
Source§impl Clone for ScheduleKind
impl Clone for ScheduleKind
Source§fn clone(&self) -> ScheduleKind
fn clone(&self) -> ScheduleKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScheduleKind
Source§impl Debug for ScheduleKind
impl Debug for ScheduleKind
Source§impl Default for ScheduleKind
impl Default for ScheduleKind
Source§fn default() -> ScheduleKind
fn default() -> ScheduleKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScheduleKind
impl<'de> Deserialize<'de> for ScheduleKind
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 Display for ScheduleKind
impl Display for ScheduleKind
impl Eq for ScheduleKind
Source§impl FromStr for ScheduleKind
impl FromStr for ScheduleKind
Source§impl PartialEq for ScheduleKind
impl PartialEq for ScheduleKind
Source§fn eq(&self, other: &ScheduleKind) -> bool
fn eq(&self, other: &ScheduleKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScheduleKind
impl Serialize for ScheduleKind
impl StructuralPartialEq for ScheduleKind
Auto Trait Implementations§
impl Freeze for ScheduleKind
impl RefUnwindSafe for ScheduleKind
impl Send for ScheduleKind
impl Sync for ScheduleKind
impl Unpin for ScheduleKind
impl UnsafeUnpin for ScheduleKind
impl UnwindSafe for ScheduleKind
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