pub enum FloatPolicy {
RejectNonFinite,
}Expand description
Floating-point conversion policy.
Variants§
RejectNonFinite
Reject NaN and infinity 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
Source§impl Default for FloatPolicy
impl Default for FloatPolicy
Source§fn default() -> FloatPolicy
fn default() -> FloatPolicy
Returns the “default value” for a type. Read more
impl Eq for FloatPolicy
Source§impl Hash for FloatPolicy
impl Hash for FloatPolicy
Source§impl PartialEq for FloatPolicy
impl PartialEq for FloatPolicy
Source§fn eq(&self, other: &FloatPolicy) -> bool
fn eq(&self, other: &FloatPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FloatPolicy
Auto Trait Implementations§
impl Freeze 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§
impl<T> Allocation for T
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