pub struct LocalId(pub u64);Expand description
The trace-local identity of one captured value. 一个已捕获局部值在其所属追踪内的身份。
Ids are minted once per CallTrace and are never reused; an id that escapes
a discarded scope therefore resolves to nothing rather than aliasing new
evidence. Only equality and ordering within one trace are meaningful.
id 在一条 CallTrace 内只发放一次、永不复用;逃出被丢弃作用域的 id 只会解析不到
任何东西,而不会别名到新证据。只有同一条追踪内的相等与次序才有意义。
Tuple Fields§
§0: u64Trait Implementations§
impl Copy for LocalId
impl Eq for LocalId
impl StructuralPartialEq for LocalId
Auto Trait Implementations§
impl Freeze for LocalId
impl RefUnwindSafe for LocalId
impl Send for LocalId
impl Sync for LocalId
impl Unpin for LocalId
impl UnsafeUnpin for LocalId
impl UnwindSafe for LocalId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.