solana_sdk::account

Function accounts_equal

source
pub fn accounts_equal<T: ReadableAccount, U: ReadableAccount>(
    me: &T,
    other: &U,
) -> bool
Expand description

Compares two ReadableAccounts

Returns true if accounts are essentially equivalent as in all fields are equivalent.