pub struct Immediate {
pub value: String,
pub span: Range<usize>,
}Expand description
Immediate value represented as a string. TODO: Replace with appropriate numeric type later.
Fields§
§value: String§span: Range<usize>Implementations§
Trait Implementations§
Source§impl PtxParser for Immediate
impl PtxParser for Immediate
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 Immediate
impl PtxUnparser for Immediate
impl Eq for Immediate
impl StructuralPartialEq for Immediate
Auto Trait Implementations§
impl Freeze for Immediate
impl RefUnwindSafe for Immediate
impl Send for Immediate
impl Sync for Immediate
impl Unpin for Immediate
impl UnwindSafe for Immediate
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