#[non_exhaustive]pub enum FloatErrorKind {
Empty,
Invalid,
}🔬This is a nightly-only experimental API. (
extended_float_error_kind #164793)Expand description
An error kind which can be returned when parsing a float.
This error kind is used as the inner error type in ParseFloatError for the FromStr implementation
for f32 and f64.
§Example
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.
Empty
🔬This is a nightly-only experimental API. (
extended_float_error_kind #164793)Cannot parse float from empty string.
Invalid
🔬This is a nightly-only experimental API. (
extended_float_error_kind #164793)Invalid float literal.
Trait Implementations§
Source§impl Clone for FloatErrorKind
impl Clone for FloatErrorKind
Source§fn clone(&self) -> FloatErrorKind
fn clone(&self) -> FloatErrorKind
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 FloatErrorKind
Source§impl Debug for FloatErrorKind
impl Debug for FloatErrorKind
Source§impl Eq for FloatErrorKind
impl Eq for FloatErrorKind
1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
👎Deprecated since 1.95.0:
implementation detail of #[derive(Eq)]
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
🔬This is a nightly-only experimental API. (
derive_eq_internals)Source§impl Hash for FloatErrorKind
impl Hash for FloatErrorKind
Source§impl PartialEq for FloatErrorKind
impl PartialEq for FloatErrorKind
impl StructuralPartialEq for FloatErrorKind
impl TrivialClone for FloatErrorKind
Auto Trait Implementations§
impl Forget for FloatErrorKind
impl Freeze for FloatErrorKind
impl Move for FloatErrorKind
impl RefUnwindSafe for FloatErrorKind
impl Send for FloatErrorKind
impl Sync for FloatErrorKind
impl Unpin for FloatErrorKind
impl UnsafeUnpin for FloatErrorKind
impl UnwindSafe for FloatErrorKind
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,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more