pub struct InitializeDynamicTickArray {
pub start_tick_index: i32,
pub idempotent: bool,
}Expand description
Initialize a variable-length tick array for a Whirlpool.
§Parameters
start_tick_index- The starting tick index for this tick-array.
Has to be a multiple of TickArray size & the tick spacing of this pool.
idempotent- If true, the instruction will not fail if the tick array already exists.
Note: The idempotent option exits successfully if a FixedTickArray is present as well as a DynamicTickArray. #### Special Errors
InvalidStartTick- if the provided start tick is out of bounds or is not a multiple of
TICK_ARRAY_SIZE * tick spacing.
Fields§
§start_tick_index: i32§idempotent: boolImplementations§
Trait Implementations§
Source§impl ArrangeAccounts for InitializeDynamicTickArray
impl ArrangeAccounts for InitializeDynamicTickArray
type ArrangedAccounts = InitializeDynamicTickArrayInstructionAccounts
fn arrange_accounts(accounts: &[AccountMeta]) -> Option<Self::ArrangedAccounts>
Source§impl BorshDeserialize for InitializeDynamicTickArray
impl BorshDeserialize for InitializeDynamicTickArray
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 Clone for InitializeDynamicTickArray
impl Clone for InitializeDynamicTickArray
Source§fn clone(&self) -> InitializeDynamicTickArray
fn clone(&self) -> InitializeDynamicTickArray
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InitializeDynamicTickArray
impl Debug for InitializeDynamicTickArray
impl StructuralPartialEq for InitializeDynamicTickArray
Auto Trait Implementations§
impl Freeze for InitializeDynamicTickArray
impl RefUnwindSafe for InitializeDynamicTickArray
impl Send for InitializeDynamicTickArray
impl Sync for InitializeDynamicTickArray
impl Unpin for InitializeDynamicTickArray
impl UnsafeUnpin for InitializeDynamicTickArray
impl UnwindSafe for InitializeDynamicTickArray
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more