pub struct MarginTable { /* private fields */ }Expand description
{"description","marginTiers"}: 1 to 3 tiers, lower bounds rising and
max leverage falling, each leverage from 1 to 50.
Implementations§
Source§impl MarginTable
impl MarginTable
Sourcepub fn new(
description: impl Into<String>,
tiers: Vec<MarginTier>,
) -> Result<Self, BadDeploy>
pub fn new( description: impl Into<String>, tiers: Vec<MarginTier>, ) -> Result<Self, BadDeploy>
Refuses no tiers, more than three, a leverage outside 1 to 50, or tiers out of order.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
The table’s description.
Sourcepub fn tiers(&self) -> &[MarginTier]
pub fn tiers(&self) -> &[MarginTier]
The tiers, lower bounds rising.
Trait Implementations§
Source§impl Clone for MarginTable
impl Clone for MarginTable
Source§impl Debug for MarginTable
impl Debug for MarginTable
impl Eq for MarginTable
Source§impl PartialEq for MarginTable
impl PartialEq for MarginTable
impl StructuralPartialEq for MarginTable
Auto Trait Implementations§
impl Forget for MarginTable
impl Freeze for MarginTable
impl Move for MarginTable
impl RefUnwindSafe for MarginTable
impl Send for MarginTable
impl Sync for MarginTable
impl Unpin for MarginTable
impl UnsafeUnpin for MarginTable
impl UnwindSafe for MarginTable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.