#[repr(C)]pub struct Ema {
pub val: i64,
pub numer: i64,
pub denom: i64,
}
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
An exponentially-weighted moving average.
Fields§
§val: i64
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
The current value of the EMA
numer: i64
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
numerator state for next update
denom: i64
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
denominator state for next update
Trait Implementations§
Source§impl BorshDeserialize for Emawhere
i64: BorshDeserialize,
impl BorshDeserialize for Emawhere
i64: BorshDeserialize,
Source§impl BorshSerialize for Emawhere
i64: BorshSerialize,
impl BorshSerialize for Emawhere
i64: BorshSerialize,
Source§impl<'de> Deserialize<'de> for Ema
impl<'de> Deserialize<'de> for Ema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Ema
impl Eq for Ema
impl StructuralPartialEq for Ema
Auto Trait Implementations§
impl Freeze for Ema
impl RefUnwindSafe for Ema
impl Send for Ema
impl Sync for Ema
impl Unpin for Ema
impl UnwindSafe for Ema
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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