pub enum NumericLiteral {
Signed {
value: i64,
span: Range<usize>,
},
Unsigned {
value: u64,
span: Range<usize>,
},
Float64 {
value: u64,
span: Range<usize>,
},
Float32 {
value: u32,
span: Range<usize>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for NumericLiteral
impl Clone for NumericLiteral
Source§fn clone(&self) -> NumericLiteral
fn clone(&self) -> NumericLiteral
Returns a duplicate 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 NumericLiteral
impl Debug for NumericLiteral
Source§impl PartialEq for NumericLiteral
impl PartialEq for NumericLiteral
Source§impl PtxParser for NumericLiteral
impl PtxParser for NumericLiteral
Source§fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
Parse an instance of
Self from the token stream.Source§impl PtxUnparser for NumericLiteral
impl PtxUnparser for NumericLiteral
impl Eq for NumericLiteral
impl StructuralPartialEq for NumericLiteral
Auto Trait Implementations§
impl Freeze for NumericLiteral
impl RefUnwindSafe for NumericLiteral
impl Send for NumericLiteral
impl Sync for NumericLiteral
impl Unpin for NumericLiteral
impl UnwindSafe for NumericLiteral
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