pub struct BorrowingFeeKinkModelParams<T> { /* private fields */ }
Expand description
Borrowing Fee Kink Model Parameters.
Implementations§
Source§impl<T> BorrowingFeeKinkModelParams<T>
impl<T> BorrowingFeeKinkModelParams<T>
Source§impl<T> BorrowingFeeKinkModelParams<T>
impl<T> BorrowingFeeKinkModelParams<T>
Sourcepub fn optimal_usage_factor(&self, is_long: bool) -> &T
pub fn optimal_usage_factor(&self, is_long: bool) -> &T
Get optimal usage factor.
Sourcepub fn base_borrowing_factor(&self, is_long: bool) -> &T
pub fn base_borrowing_factor(&self, is_long: bool) -> &T
Get base borrowing factor.
Sourcepub fn above_optimal_usage_borrowing_factor(&self, is_long: bool) -> &T
pub fn above_optimal_usage_borrowing_factor(&self, is_long: bool) -> &T
Get above optimal usage borrowing factor.
Trait Implementations§
Source§impl<T: Clone> Clone for BorrowingFeeKinkModelParams<T>
impl<T: Clone> Clone for BorrowingFeeKinkModelParams<T>
Source§fn clone(&self) -> BorrowingFeeKinkModelParams<T>
fn clone(&self) -> BorrowingFeeKinkModelParams<T>
Returns a copy 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<T: Debug> Debug for BorrowingFeeKinkModelParams<T>
impl<T: Debug> Debug for BorrowingFeeKinkModelParams<T>
impl<T: Copy> Copy for BorrowingFeeKinkModelParams<T>
Auto Trait Implementations§
impl<T> Freeze for BorrowingFeeKinkModelParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for BorrowingFeeKinkModelParams<T>where
T: RefUnwindSafe,
impl<T> Send for BorrowingFeeKinkModelParams<T>where
T: Send,
impl<T> Sync for BorrowingFeeKinkModelParams<T>where
T: Sync,
impl<T> Unpin for BorrowingFeeKinkModelParams<T>where
T: Unpin,
impl<T> UnwindSafe for BorrowingFeeKinkModelParams<T>where
T: UnwindSafe,
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