pub struct ReturnValue { /* private fields */ }Expand description
A return value paired with descriptive return-kind vocabulary.
Implementations§
Source§impl ReturnValue
impl ReturnValue
Sourcepub fn new(kind: ReturnKind, value: f64) -> Result<Self, ReturnError>
pub fn new(kind: ReturnKind, value: f64) -> Result<Self, ReturnError>
Creates a return value from a kind and finite numeric value.
§Errors
Returns ReturnError::NonFiniteReturn when value is not finite.
Sourcepub const fn kind(&self) -> &ReturnKind
pub const fn kind(&self) -> &ReturnKind
Returns the return kind.
Trait Implementations§
Source§impl Clone for ReturnValue
impl Clone for ReturnValue
Source§fn clone(&self) -> ReturnValue
fn clone(&self) -> ReturnValue
Returns a duplicate 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 Debug for ReturnValue
impl Debug for ReturnValue
Source§impl PartialEq for ReturnValue
impl PartialEq for ReturnValue
impl StructuralPartialEq for ReturnValue
Auto Trait Implementations§
impl Freeze for ReturnValue
impl RefUnwindSafe for ReturnValue
impl Send for ReturnValue
impl Sync for ReturnValue
impl Unpin for ReturnValue
impl UnsafeUnpin for ReturnValue
impl UnwindSafe for ReturnValue
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