Struct endbasic_core::ast::IntegerSpan
source · pub struct IntegerSpan {
pub value: i32,
pub pos: LineCol,
}
Expand description
Components of an integer literal expression.
Fields§
§value: i32
The integer literal.
pos: LineCol
Starting position of the literal.
Trait Implementations§
source§impl Clone for IntegerSpan
impl Clone for IntegerSpan
source§fn clone(&self) -> IntegerSpan
fn clone(&self) -> IntegerSpan
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 IntegerSpan
impl Debug for IntegerSpan
source§impl PartialEq for IntegerSpan
impl PartialEq for IntegerSpan
source§fn eq(&self, other: &IntegerSpan) -> bool
fn eq(&self, other: &IntegerSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IntegerSpan
impl StructuralPartialEq for IntegerSpan
Auto Trait Implementations§
impl Freeze for IntegerSpan
impl RefUnwindSafe for IntegerSpan
impl Send for IntegerSpan
impl Sync for IntegerSpan
impl Unpin for IntegerSpan
impl UnwindSafe for IntegerSpan
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
)