pub enum RemainingMode {
Strict,
Passthrough,
}Expand description
Duplicate-handling policy for a RemainingAccounts view.
Variants§
Strict
Reject any yielded account whose address matches a declared or previously-yielded account. Safe default for pool programs and anything that intends every slot to be distinct.
Passthrough
Yield every slot as is. Use when the caller is expected to pass aliases (batched fan-in, self-transfers, etc.).
Trait Implementations§
Source§impl Clone for RemainingMode
impl Clone for RemainingMode
Source§fn clone(&self) -> RemainingMode
fn clone(&self) -> RemainingMode
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 moreSource§impl Debug for RemainingMode
impl Debug for RemainingMode
Source§impl PartialEq for RemainingMode
impl PartialEq for RemainingMode
impl Copy for RemainingMode
impl Eq for RemainingMode
impl StructuralPartialEq for RemainingMode
Auto Trait Implementations§
impl Freeze for RemainingMode
impl RefUnwindSafe for RemainingMode
impl Send for RemainingMode
impl Sync for RemainingMode
impl Unpin for RemainingMode
impl UnsafeUnpin for RemainingMode
impl UnwindSafe for RemainingMode
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