pub struct Ident<T: Clone + Eq>(pub T, pub u32);Expand description
Identifier of variables.
Adopt De Bruijn index for the second field, where 0 is for free variables and others are for bounded/captured variables.
Tuple Fields§
§0: T§1: u32Trait Implementations§
impl<T: Eq + Clone + Eq> Eq for Ident<T>
impl<T: Clone + Eq> StructuralPartialEq for Ident<T>
Auto Trait Implementations§
impl<T> Freeze for Ident<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ident<T>where
T: RefUnwindSafe,
impl<T> Send for Ident<T>where
T: Send,
impl<T> Sync for Ident<T>where
T: Sync,
impl<T> Unpin for Ident<T>where
T: Unpin,
impl<T> UnwindSafe for Ident<T>where
T: UnwindSafe,
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