Struct cyclos_core::states::position_manager::PositionManagerState
source · [−]#[repr(packed)]pub struct PositionManagerState {
pub bump: u8,
}Fields
bump: u8Bump to identify PDA
Trait Implementations
sourceimpl AccountDeserialize for PositionManagerState
impl AccountDeserialize for PositionManagerState
sourcefn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint account into a token
Account. Read more
sourceimpl Clone for PositionManagerState
impl Clone for PositionManagerState
sourcefn clone(&self) -> PositionManagerState
fn clone(&self) -> PositionManagerState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for PositionManagerState
impl Default for PositionManagerState
sourcefn default() -> PositionManagerState
fn default() -> PositionManagerState
Returns the “default value” for a type. Read more
sourceimpl Discriminator for PositionManagerState
impl Discriminator for PositionManagerState
fn discriminator() -> [u8; 8]
sourceimpl Owner for PositionManagerState
impl Owner for PositionManagerState
sourceimpl Zeroable for PositionManagerState
impl Zeroable for PositionManagerState
impl Copy for PositionManagerState
impl Pod for PositionManagerState
impl ZeroCopy for PositionManagerState
Auto Trait Implementations
impl RefUnwindSafe for PositionManagerState
impl Send for PositionManagerState
impl Sync for PositionManagerState
impl Unpin for PositionManagerState
impl UnwindSafe for PositionManagerState
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits as &Self.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more