pub struct NumericCoercion {
pub span: Span,
pub literal: bool,
pub explicit: bool,
pub to_float: bool,
}Expand description
Inserted int → float (or explicit as) recorded for CIR / reveal (#112).
Fields§
§span: Span§literal: boolTrue when the source is an int literal (including -2). Emit a float literal, no lint.
explicit: boolExplicit as float / as int — no W0087.
to_float: boolTrait Implementations§
Source§impl Clone for NumericCoercion
impl Clone for NumericCoercion
Source§fn clone(&self) -> NumericCoercion
fn clone(&self) -> NumericCoercion
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 moreAuto Trait Implementations§
impl Freeze for NumericCoercion
impl RefUnwindSafe for NumericCoercion
impl Send for NumericCoercion
impl Sync for NumericCoercion
impl Unpin for NumericCoercion
impl UnsafeUnpin for NumericCoercion
impl UnwindSafe for NumericCoercion
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