pub enum BatchTarget {
Default,
NoRate,
Price(f64),
}Expand description
The price Simulation::apply_rent_batch sets.
Variants§
Default
The kind’s default price: the average rung in Classic.
NoRate
Off the market: the rooms take no new tenants (Classic only).
Price(f64)
This price, snapped to a rung in Classic or kept inside the band in Modern.
Trait Implementations§
Source§impl Clone for BatchTarget
impl Clone for BatchTarget
Source§fn clone(&self) -> BatchTarget
fn clone(&self) -> BatchTarget
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 moreSource§impl Debug for BatchTarget
impl Debug for BatchTarget
Source§impl PartialEq for BatchTarget
impl PartialEq for BatchTarget
Source§fn eq(&self, other: &BatchTarget) -> bool
fn eq(&self, other: &BatchTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BatchTarget
impl StructuralPartialEq for BatchTarget
Auto Trait Implementations§
impl Freeze for BatchTarget
impl RefUnwindSafe for BatchTarget
impl Send for BatchTarget
impl Sync for BatchTarget
impl Unpin for BatchTarget
impl UnsafeUnpin for BatchTarget
impl UnwindSafe for BatchTarget
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