Struct endbasic_core::ast::DoubleSpan
source · pub struct DoubleSpan {
pub value: f64,
pub pos: LineCol,
}
Expand description
Components of a double literal expression.
Fields§
§value: f64
The double literal.
pos: LineCol
Starting position of the literal.
Trait Implementations§
source§impl Clone for DoubleSpan
impl Clone for DoubleSpan
source§fn clone(&self) -> DoubleSpan
fn clone(&self) -> DoubleSpan
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DoubleSpan
impl Debug for DoubleSpan
source§impl PartialEq for DoubleSpan
impl PartialEq for DoubleSpan
source§fn eq(&self, other: &DoubleSpan) -> bool
fn eq(&self, other: &DoubleSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DoubleSpan
Auto Trait Implementations§
impl Freeze for DoubleSpan
impl RefUnwindSafe for DoubleSpan
impl Send for DoubleSpan
impl Sync for DoubleSpan
impl Unpin for DoubleSpan
impl UnwindSafe for DoubleSpan
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)