Struct LogReturn
pub struct LogReturn { /* private fields */ }Expand description
A finite log return value.
Implementations§
§impl LogReturn
impl LogReturn
pub fn new(value: f64) -> Result<LogReturn, ReturnError>
pub fn new(value: f64) -> Result<LogReturn, ReturnError>
Creates a log return from a finite value.
§Errors
Returns [ReturnError::NonFiniteReturn] when value is not finite.
Trait Implementations§
§impl PartialOrd for LogReturn
impl PartialOrd for LogReturn
impl Copy for LogReturn
impl StructuralPartialEq for LogReturn
Auto Trait Implementations§
impl Freeze for LogReturn
impl RefUnwindSafe for LogReturn
impl Send for LogReturn
impl Sync for LogReturn
impl Unpin for LogReturn
impl UnsafeUnpin for LogReturn
impl UnwindSafe for LogReturn
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