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<'a>]) -> Self
pub fn accounts(&self) -> &'a [AccountView<'a>]
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>
impl<'a> Copy for AccountAudit<'a>
Auto Trait Implementations§
impl<'a> !Send for AccountAudit<'a>
impl<'a> !Sync for AccountAudit<'a>
impl<'a> Freeze for AccountAudit<'a>
impl<'a> RefUnwindSafe 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