fn round_exp(&self, state: &State<C>, timestamp: Timestamp) -> u8 {
        self.latest_unit(state).map_or(self.next_round_exp, |unit| {
            let max_re = self.next_round_exp.max(unit.round_exp);
            if unit.timestamp < state::round_id(timestamp, max_re) {
                self.next_round_exp
            } else {
                unit.round_exp
            }
        })
    }
/// The round exponent of the round containing `timestamp`.
///
/// This returns `self.next_round_exp`, if that is a valid round exponent for a unit cast at
/// `timestamp`. Otherwise it returns the round exponent of our latest unit.
The round exponent of the round containing `timestamp`.
This returns `self.next_round_exp`, if that is a valid round exponent for a unit cast at
`timestamp`. Otherwise it returns the round exponent of our latest unit.
The round exponent of the round containing ` timestamp ` . This returns ` self . next_round_exp ` if that is a valid round exponent for a unit cast at ` timestamp ` . Otherwise it returns the round exponent of our latest unit .
fn round_exp(&self, state: &State<C>, timestamp: Timestamp) -> u8 {
        self.latest_unit(state).map_or(self.next_round_exp, |unit| {
            let max_re = self.next_round_exp.max(unit.round_exp);
            if unit.timestamp < state::round_id(timestamp, max_re) {
                self.next_round_exp
            } else {
                unit.round_exp
            }
        })
    }
fn round_exp ( & self , state : & State < C > , timestamp : Timestamp ) -> u8 { self . latest_unit ( state ) . map_or ( self . next_round_exp , | unit | { let max_re = self . next_round_exp . max ( unit . round_exp ) ; if unit . timestamp < state :: round_id ( timestamp , max_re ) { self . next_round_exp } else { unit . round_exp } } ) }
The round exponent of the round containing `timestamp`.
The round exponent of the round containing ` timestamp ` .
&self
state
&State<C>
timestamp
Timestamp
&self
state
&State<C>
timestamp
Timestamp