pub struct NameCache {
pub entries: Vec<NameEntry>,
pub map: HashMap<u32, i32>,
}Expand description
Name cache for shape and body names. Works with recording. (b3NameCache)
C stores a verstable map as void* map; Rust uses a std HashMap keyed by
name id for the same id→entry association. Observable name↔id behavior will
match once the logic slice lands.
Fields§
§entries: Vec<NameEntry>§map: HashMap<u32, i32>Maps name id → entry index. Id 0 is NULL_NAME and is never inserted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NameCache
impl RefUnwindSafe for NameCache
impl Send for NameCache
impl Sync for NameCache
impl Unpin for NameCache
impl UnsafeUnpin for NameCache
impl UnwindSafe for NameCache
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