pub enum ExprId {
Temp(usize),
Local(String),
Global(String),
}Expand description
ExprId is deliberately not Clone:
it should not be copied.
Variants§
Temp(usize)
A temporary. The integer is its ID, unique within a global fn.
Local(String)
A local “variable” declaration, more precisely a name binding.
Global(String)
A global. (For now, a function.) Contained String is its name.
Trait Implementations§
Source§impl Ord for ExprId
impl Ord for ExprId
Source§impl PartialOrd for ExprId
impl PartialOrd for ExprId
impl Eq for ExprId
impl StructuralPartialEq for ExprId
Auto Trait Implementations§
impl Freeze for ExprId
impl RefUnwindSafe for ExprId
impl Send for ExprId
impl Sync for ExprId
impl Unpin for ExprId
impl UnwindSafe for ExprId
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