pub enum CollectionToggle {
None,
Clear,
Set(Collection),
}
Variants§
Trait Implementations§
source§impl BorshDeserialize for CollectionTogglewhere
Collection: BorshDeserialize,
impl BorshDeserialize for CollectionTogglewhere Collection: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for CollectionTogglewhere
Collection: BorshSerialize,
impl BorshSerialize for CollectionTogglewhere Collection: BorshSerialize,
source§impl Clone for CollectionToggle
impl Clone for CollectionToggle
source§fn clone(&self) -> CollectionToggle
fn clone(&self) -> CollectionToggle
Returns a copy 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 CollectionToggle
impl Debug for CollectionToggle
source§impl EnumExt for CollectionTogglewhere
Collection: BorshDeserialize,
impl EnumExt for CollectionTogglewhere Collection: BorshDeserialize,
source§impl PartialEq<CollectionToggle> for CollectionToggle
impl PartialEq<CollectionToggle> for CollectionToggle
source§fn eq(&self, other: &CollectionToggle) -> bool
fn eq(&self, other: &CollectionToggle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CollectionToggle
impl StructuralEq for CollectionToggle
impl StructuralPartialEq for CollectionToggle
Auto Trait Implementations§
impl RefUnwindSafe for CollectionToggle
impl Send for CollectionToggle
impl Sync for CollectionToggle
impl Unpin for CollectionToggle
impl UnwindSafe for CollectionToggle
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more