pub enum RoundingMode {
HalfAwayFromZero,
HalfTowardsZero,
HalfEven,
HalfOdd,
PositiveInfinity,
NegativeInfinity,
TowardsZero,
AwayFromZero,
}Expand description
round()’s $mode (RoundingMode cases and PHP_ROUND_* constants).
Variants§
HalfAwayFromZero
PHP_ROUND_HALF_UP (1), RoundingMode::HalfAwayFromZero: the default.
HalfTowardsZero
PHP_ROUND_HALF_DOWN (2), RoundingMode::HalfTowardsZero.
HalfEven
PHP_ROUND_HALF_EVEN (3), RoundingMode::HalfEven.
HalfOdd
PHP_ROUND_HALF_ODD (4), RoundingMode::HalfOdd.
PositiveInfinity
RoundingMode::PositiveInfinity (5).
NegativeInfinity
RoundingMode::NegativeInfinity (6).
TowardsZero
RoundingMode::TowardsZero (7).
AwayFromZero
RoundingMode::AwayFromZero (8).
Implementations§
Trait Implementations§
Source§impl Clone for RoundingMode
impl Clone for RoundingMode
impl Copy for RoundingMode
Source§impl Debug for RoundingMode
impl Debug for RoundingMode
Source§impl Default for RoundingMode
impl Default for RoundingMode
impl Eq for RoundingMode
Source§impl PartialEq for RoundingMode
impl PartialEq for RoundingMode
impl StructuralPartialEq for RoundingMode
Auto Trait Implementations§
impl Forget for RoundingMode
impl Freeze for RoundingMode
impl Move for RoundingMode
impl RefUnwindSafe for RoundingMode
impl Send for RoundingMode
impl Sync for RoundingMode
impl Unpin for RoundingMode
impl UnsafeUnpin for RoundingMode
impl UnwindSafe for RoundingMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.