solana_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.