pub struct AccountAudit<'a> { /* private fields */ }Expand description
Instruction-scope duplicate-account audit over a slice of account views.
Implementations§
Source§impl<'a> AccountAudit<'a>
impl<'a> AccountAudit<'a>
pub const fn new(accounts: &'a [AccountView]) -> Self
pub fn accounts(&self) -> &'a [AccountView]
pub fn first_duplicate(&self) -> Option<DuplicateAccount>
pub fn first_duplicate_writable(&self) -> Option<DuplicateAccount>
pub fn first_duplicate_signer(&self) -> Option<DuplicateAccount>
pub fn require_all_unique(&self) -> ProgramResult
pub fn require_unique_writable(&self) -> ProgramResult
pub fn require_unique_signers(&self) -> ProgramResult
Trait Implementations§
Source§impl<'a> Clone for AccountAudit<'a>
impl<'a> Clone for AccountAudit<'a>
Source§fn clone(&self) -> AccountAudit<'a>
fn clone(&self) -> AccountAudit<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AccountAudit<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccountAudit<'a>
impl<'a> RefUnwindSafe for AccountAudit<'a>
impl<'a> Send for AccountAudit<'a>
impl<'a> Sync for AccountAudit<'a>
impl<'a> Unpin for AccountAudit<'a>
impl<'a> UnsafeUnpin for AccountAudit<'a>
impl<'a> UnwindSafe for AccountAudit<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more