fn is_writable_index(&self, key_index: usize) -> bool {
        let header = &self.message.header;
        let num_account_keys = self.message.account_keys.len();
        let num_signed_accounts = usize::from(header.num_required_signatures);
        if key_index >= num_account_keys {
            let loaded_addresses_index = key_index.saturating_sub(num_account_keys);
            loaded_addresses_index < self.loaded_addresses.writable.len()
        } else if key_index >= num_signed_accounts {
            let num_unsigned_accounts = num_account_keys.saturating_sub(num_signed_accounts);
            let num_writable_unsigned_accounts = num_unsigned_accounts
                .saturating_sub(usize::from(header.num_readonly_unsigned_accounts));
            let unsigned_account_index = key_index.saturating_sub(num_signed_accounts);
            unsigned_account_index < num_writable_unsigned_accounts
        } else {
            let num_writable_signed_accounts = num_signed_accounts
                .saturating_sub(usize::from(header.num_readonly_signed_accounts));
            key_index < num_writable_signed_accounts
        }
    }
/// Returns true if the account at the specified index was requested to be
/// writable.  This method should not be used directly.
Returns true if the account at the specified index was requested to be
writable.  This method should not be used directly.
Returns true if the account at the specified index was requested to be writable . This method should not be used directly .
fn is_writable_index(&self, key_index: usize) -> bool {
        let header = &self.message.header;
        let num_account_keys = self.message.account_keys.len();
        let num_signed_accounts = usize::from(header.num_required_signatures);
        if key_index >= num_account_keys {
            let loaded_addresses_index = key_index.saturating_sub(num_account_keys);
            loaded_addresses_index < self.loaded_addresses.writable.len()
        } else if key_index >= num_signed_accounts {
            let num_unsigned_accounts = num_account_keys.saturating_sub(num_signed_accounts);
            let num_writable_unsigned_accounts = num_unsigned_accounts
                .saturating_sub(usize::from(header.num_readonly_unsigned_accounts));
            let unsigned_account_index = key_index.saturating_sub(num_signed_accounts);
            unsigned_account_index < num_writable_unsigned_accounts
        } else {
            let num_writable_signed_accounts = num_signed_accounts
                .saturating_sub(usize::from(header.num_readonly_signed_accounts));
            key_index < num_writable_signed_accounts
        }
    }
fn is_writable_index ( & self , key_index : usize ) -> bool { let header = & self . message . header ; let num_account_keys = self . message . account_keys . len ( ) ; let num_signed_accounts = usize :: from ( header . num_required_signatures ) ; if key_index >= num_account_keys { let loaded_addresses_index = key_index . saturating_sub ( num_account_keys ) ; loaded_addresses_index < self . loaded_addresses . writable . len ( ) } else if key_index >= num_signed_accounts { let num_unsigned_accounts = num_account_keys . saturating_sub ( num_signed_accounts ) ; let num_writable_unsigned_accounts = num_unsigned_accounts . saturating_sub ( usize :: from ( header . num_readonly_unsigned_accounts ) ) ; let unsigned_account_index = key_index . saturating_sub ( num_signed_accounts ) ; unsigned_account_index < num_writable_unsigned_accounts } else { let num_writable_signed_accounts = num_signed_accounts . saturating_sub ( usize :: from ( header . num_readonly_signed_accounts ) ) ; key_index < num_writable_signed_accounts } }
Returns true if the account at the specified index was requested to be
writable.
Returns true if the account at the specified index was requested to be writable .
&self
key_index
usize