Enum TrsFundingShape
#[non_exhaustive]pub enum TrsFundingShape {
Float,
Fixed,
}Expand description
The funding-leg shape of a total return swap template.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Float
Floating funding: a projected index plus the agreed spread.
Fixed
Fixed funding: the agreed spread paid as a flat fixed rate.
Trait Implementations§
§impl Clone for TrsFundingShape
impl Clone for TrsFundingShape
§fn clone(&self) -> TrsFundingShape
fn clone(&self) -> TrsFundingShape
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 TrsFundingShape
§impl Debug for TrsFundingShape
impl Debug for TrsFundingShape
impl Eq for TrsFundingShape
§impl PartialEq for TrsFundingShape
impl PartialEq for TrsFundingShape
impl StructuralPartialEq for TrsFundingShape
Auto Trait Implementations§
impl Freeze for TrsFundingShape
impl RefUnwindSafe for TrsFundingShape
impl Send for TrsFundingShape
impl Sync for TrsFundingShape
impl Unpin for TrsFundingShape
impl UnsafeUnpin for TrsFundingShape
impl UnwindSafe for TrsFundingShape
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