pub struct FloatConstant {
pub value: Float,
pub ty: FloatConstantType,
pub imaginary: bool,
pub remarks: Remarks,
}Expand description
A converted floating constant.
Fields§
§value: FloatThe value, correctly rounded into the format of its type.
ty: FloatConstantTypeThe type the suffix named, which is double when there was no suffix.
imaginary: boolWhether an i or a j made this the imaginary part of a complex constant. The value is
the real number that was written either way, so the caller builds the complex one.
remarks: RemarksWhat is worth saying about the constant, for the caller that holds the span.
Trait Implementations§
Source§impl Clone for FloatConstant
impl Clone for FloatConstant
Source§fn clone(&self) -> FloatConstant
fn clone(&self) -> FloatConstant
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 FloatConstant
Source§impl Debug for FloatConstant
impl Debug for FloatConstant
impl Eq for FloatConstant
Source§impl PartialEq for FloatConstant
impl PartialEq for FloatConstant
impl StructuralPartialEq for FloatConstant
Auto Trait Implementations§
impl Freeze for FloatConstant
impl RefUnwindSafe for FloatConstant
impl Send for FloatConstant
impl Sync for FloatConstant
impl Unpin for FloatConstant
impl UnsafeUnpin for FloatConstant
impl UnwindSafe for FloatConstant
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