Struct port_variable_rate_lending_instructions::math::Rate [−][src]
pub struct Rate(pub U128);
Expand description
Small decimal values, precise to 18 digits
Tuple Fields
0: U128
Implementations
Create scaled decimal from percent value
Return raw scaled value
Create decimal from scaled value
Round scaled decimal to u64
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Divide
Multiply
Multiply
Auto Trait Implementations
impl RefUnwindSafe for Rate
impl UnwindSafe for Rate
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more