#[non_exhaustive]pub enum FloatPolicy {
All,
FiniteOnly,
Reject,
}Expand description
Explicit floating-point acceptance policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Accept all binary16/32/64 values, including infinities and NaNs.
FiniteOnly
Accept finite values only, including both signs of zero.
Reject
Reject all floating-point values.
Trait Implementations§
Source§impl Clone for FloatPolicy
impl Clone for FloatPolicy
Source§fn clone(&self) -> FloatPolicy
fn clone(&self) -> FloatPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FloatPolicy
Source§impl Debug for FloatPolicy
impl Debug for FloatPolicy
impl Eq for FloatPolicy
Source§impl PartialEq for FloatPolicy
impl PartialEq for FloatPolicy
impl StructuralPartialEq for FloatPolicy
Auto Trait Implementations§
impl Forget for FloatPolicy
impl Freeze for FloatPolicy
impl Move for FloatPolicy
impl RefUnwindSafe for FloatPolicy
impl Send for FloatPolicy
impl Sync for FloatPolicy
impl Unpin for FloatPolicy
impl UnsafeUnpin for FloatPolicy
impl UnwindSafe for FloatPolicy
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