Struct chain_impl_mockchain::setting::ActiveSlotsCoeff
source · pub struct ActiveSlotsCoeff(Milli);
Expand description
Active slots coefficient used for calculating minimum stake to become slot leader candidate Described in Ouroboros Praos paper, also referred to as parameter F of phi function Always in range (0, 1]
Tuple Fields§
§0: Milli
Trait Implementations§
source§impl Clone for ActiveSlotsCoeff
impl Clone for ActiveSlotsCoeff
source§fn clone(&self) -> ActiveSlotsCoeff
fn clone(&self) -> ActiveSlotsCoeff
Returns a copy 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 ActiveSlotsCoeff
impl Debug for ActiveSlotsCoeff
source§impl From<ActiveSlotsCoeff> for Milli
impl From<ActiveSlotsCoeff> for Milli
source§fn from(coeff: ActiveSlotsCoeff) -> Milli
fn from(coeff: ActiveSlotsCoeff) -> Milli
Converts to this type from the input type.
source§impl From<ActiveSlotsCoeff> for f64
impl From<ActiveSlotsCoeff> for f64
source§fn from(coeff: ActiveSlotsCoeff) -> f64
fn from(coeff: ActiveSlotsCoeff) -> f64
Converts to this type from the input type.
source§impl PartialEq<ActiveSlotsCoeff> for ActiveSlotsCoeff
impl PartialEq<ActiveSlotsCoeff> for ActiveSlotsCoeff
source§fn eq(&self, other: &ActiveSlotsCoeff) -> bool
fn eq(&self, other: &ActiveSlotsCoeff) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Milli> for ActiveSlotsCoeff
impl TryFrom<Milli> for ActiveSlotsCoeff
impl Copy for ActiveSlotsCoeff
impl Eq for ActiveSlotsCoeff
impl StructuralEq for ActiveSlotsCoeff
impl StructuralPartialEq for ActiveSlotsCoeff
Auto Trait Implementations§
impl RefUnwindSafe for ActiveSlotsCoeff
impl Send for ActiveSlotsCoeff
impl Sync for ActiveSlotsCoeff
impl Unpin for ActiveSlotsCoeff
impl UnwindSafe for ActiveSlotsCoeff
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