pub struct VwapParams {
pub mode: VwapMode,
pub price_source: VwapPriceSource,
}Expand description
VWAP parameter pack.
Fields§
§mode: VwapMode§price_source: VwapPriceSourceImplementations§
Source§impl VwapParams
impl VwapParams
Sourcepub const fn cumulative_typical() -> Self
pub const fn cumulative_typical() -> Self
Cumulative VWAP on typical price — most common intraday default.
pub const fn rolling_typical(period: usize) -> Self
Trait Implementations§
Source§impl Clone for VwapParams
impl Clone for VwapParams
Source§fn clone(&self) -> VwapParams
fn clone(&self) -> VwapParams
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 moreimpl Copy for VwapParams
Source§impl Debug for VwapParams
impl Debug for VwapParams
impl Eq for VwapParams
Source§impl Hash for VwapParams
impl Hash for VwapParams
Source§impl PartialEq for VwapParams
impl PartialEq for VwapParams
impl StructuralPartialEq for VwapParams
Auto Trait Implementations§
impl Freeze for VwapParams
impl RefUnwindSafe for VwapParams
impl Send for VwapParams
impl Sync for VwapParams
impl Unpin for VwapParams
impl UnsafeUnpin for VwapParams
impl UnwindSafe for VwapParams
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