#[repr(C)]pub struct MarketSizeParams {
pub bids_size: u64,
pub asks_size: u64,
pub num_seats: u64,
}
Fields§
§bids_size: u64
§asks_size: u64
§num_seats: u64
Trait Implementations§
Source§impl BorshDeserialize for MarketSizeParamswhere
u64: BorshDeserialize,
impl BorshDeserialize for MarketSizeParamswhere
u64: 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 MarketSizeParamswhere
u64: BorshSerialize,
impl BorshSerialize for MarketSizeParamswhere
u64: BorshSerialize,
Source§impl Clone for MarketSizeParams
impl Clone for MarketSizeParams
Source§fn clone(&self) -> MarketSizeParams
fn clone(&self) -> MarketSizeParams
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 MarketSizeParams
impl Debug for MarketSizeParams
Source§impl Default for MarketSizeParams
impl Default for MarketSizeParams
Source§fn default() -> MarketSizeParams
fn default() -> MarketSizeParams
Returns the “default value” for a type. Read more
Source§impl ZeroCopy for MarketSizeParams
impl ZeroCopy for MarketSizeParams
fn load_mut_bytes(data: &mut [u8]) -> Option<&mut Self>
fn load_bytes(data: &[u8]) -> Option<&Self>
impl Copy for MarketSizeParams
impl Pod for MarketSizeParams
Auto Trait Implementations§
impl Freeze for MarketSizeParams
impl RefUnwindSafe for MarketSizeParams
impl Send for MarketSizeParams
impl Sync for MarketSizeParams
impl Unpin for MarketSizeParams
impl UnwindSafe for MarketSizeParams
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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
.Source§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
.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