Struct RoundingChain
pub struct RoundingChain {
pub reference: Option<RoundingStep>,
pub ratio: Option<RoundingStep>,
}Expand description
What a market does to its reference index and to the ratio built from it.
Carried as data rather than written out per convention: five markets whose chains differ in two integers is where a transcription error hides, and the chain is precisely the part that decides whether the answer matches the screen.
Fields§
§reference: Option<RoundingStep>Applied to the reference index, before the ratio is taken.
ratio: Option<RoundingStep>Applied to the ratio.
Implementations§
§impl RoundingChain
impl RoundingChain
pub fn none() -> Self
pub fn none() -> Self
No rounding at either step — the UK eight-month generation.
Trait Implementations§
§impl Clone for RoundingChain
impl Clone for RoundingChain
§fn clone(&self) -> RoundingChain
fn clone(&self) -> RoundingChain
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 RoundingChain
§impl Debug for RoundingChain
impl Debug for RoundingChain
§impl Default for RoundingChain
impl Default for RoundingChain
§fn default() -> RoundingChain
fn default() -> RoundingChain
Returns the “default value” for a type. Read more
impl Eq for RoundingChain
§impl PartialEq for RoundingChain
impl PartialEq for RoundingChain
impl StructuralPartialEq for RoundingChain
Auto Trait Implementations§
impl Freeze for RoundingChain
impl RefUnwindSafe for RoundingChain
impl Send for RoundingChain
impl Sync for RoundingChain
impl Unpin for RoundingChain
impl UnsafeUnpin for RoundingChain
impl UnwindSafe for RoundingChain
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