pub struct NameTable { /* private fields */ }Expand description
名字表:单元级「名字 ↔ u32」intern(只增、永不回收)+ 每节点的
名字键(槽位 = arena 下标,KEY_NONE = 无名)。
语言的 Lang::NameKey 采用 intern u32 时(推荐——区域扫描的名字
比较退化为整数等值)直接复用本表。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NameTable
impl RefUnwindSafe for NameTable
impl Send for NameTable
impl Sync for NameTable
impl Unpin for NameTable
impl UnsafeUnpin for NameTable
impl UnwindSafe for NameTable
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