pub struct StaticMap { /* private fields */ }Expand description
A read-only string map held as a sorted array and looked up by binary search.
The rule-name tables below are fixed at compile time and read on every config
load, so they want a lookup with no build step and no hashing: at these sizes
a binary search is a handful of comparisons over data the linker places in
.rodata. Keeping the sort order is the caller’s job, which the tests pin.
Implementations§
Auto Trait Implementations§
impl Freeze for StaticMap
impl RefUnwindSafe for StaticMap
impl Send for StaticMap
impl Sync for StaticMap
impl Unpin for StaticMap
impl UnsafeUnpin for StaticMap
impl UnwindSafe for StaticMap
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