pub fn due(&self, balance: u64, data_len: usize, years_elapsed: f64) -> RentDue {
        if self.is_exempt(balance, data_len) {
            RentDue::Exempt
        } else {
            let actual_data_len = data_len as u64 + ACCOUNT_STORAGE_OVERHEAD;
            let lamports_per_year = self.lamports_per_byte_year * actual_data_len;
            RentDue::Paying((lamports_per_year as f64 * years_elapsed) as u64)
        }
    }
/// rent due on account's data_len with balance
rent due on account's data_len with balance
rent due on account ' s data_len with balance
pub fn due(&self, balance: u64, data_len: usize, years_elapsed: f64) -> RentDue {
        if self.is_exempt(balance, data_len) {
            RentDue::Exempt
        } else {
            let actual_data_len = data_len as u64 + ACCOUNT_STORAGE_OVERHEAD;
            let lamports_per_year = self.lamports_per_byte_year * actual_data_len;
            RentDue::Paying((lamports_per_year as f64 * years_elapsed) as u64)
        }
    }
pub fn due ( & self , balance : u64 , data_len : usize , years_elapsed : f64 ) -> RentDue { if self . is_exempt ( balance , data_len ) { RentDue :: Exempt } else { let actual_data_len = data_len as u64 + ACCOUNT_STORAGE_OVERHEAD ; let lamports_per_year = self . lamports_per_byte_year * actual_data_len ; RentDue :: Paying ( ( lamports_per_year as f64 * years_elapsed ) as u64 ) } }
rent due on account's data_len with balance
rent due on account ' s data_len with balance
&self
balance
u64
data_len
usize
years_elapsed
f64