pub enum RoundDirection {
TowardZero,
AwayFromZero,
NearestHalfEven,
}Expand description
Rounding direction to a granularity step.
Variants§
TowardZero
Towards zero — an offer never promises more than planned, for consumption (positive) and feed-in (negative) alike.
AwayFromZero
Away from zero.
NearestHalfEven
To the nearest step, ties to even.
Trait Implementations§
Source§impl Clone for RoundDirection
impl Clone for RoundDirection
impl Copy for RoundDirection
Source§impl Debug for RoundDirection
impl Debug for RoundDirection
Source§impl<'de> Deserialize<'de> for RoundDirection
impl<'de> Deserialize<'de> for RoundDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoundDirection
Source§impl Hash for RoundDirection
impl Hash for RoundDirection
Source§impl PartialEq for RoundDirection
impl PartialEq for RoundDirection
Source§impl Serialize for RoundDirection
impl Serialize for RoundDirection
impl StructuralPartialEq for RoundDirection
Auto Trait Implementations§
impl Forget for RoundDirection
impl Freeze for RoundDirection
impl Move for RoundDirection
impl RefUnwindSafe for RoundDirection
impl Send for RoundDirection
impl Sync for RoundDirection
impl Unpin for RoundDirection
impl UnsafeUnpin for RoundDirection
impl UnwindSafe for RoundDirection
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