pub enum Id {
String(Range, Arc<String>),
F64(Range, f64),
Expression(Expression),
}
Expand description
An item id.
This is the thing that’s inside the square brackets, e.g. foo[i]
.
Variants§
String(Range, Arc<String>)
A string.
F64(Range, f64)
A number.
Expression(Expression)
An expression.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl !UnwindSafe for Id
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