pub struct SpecMap { /* private fields */ }Expand description
Ordered specialization map.
Implementations§
Source§impl SpecMap
impl SpecMap
Sourcepub fn insert(&mut self, name: impl Into<String>, value: SpecValue)
pub fn insert(&mut self, name: impl Into<String>, value: SpecValue)
Insert or replace a (name, value) pair.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &SpecValue)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &SpecValue)>
Iterate (name, value) pairs in deterministic order.
Sourcepub fn to_numeric_constants(&self) -> HashMap<String, f64>
pub fn to_numeric_constants(&self) -> HashMap<String, f64>
Convert to a deterministic numeric constant map.
Sourcepub fn cache_hash(&self) -> u64
pub fn cache_hash(&self) -> u64
Compute this map’s 64-bit cache contribution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecMap
impl RefUnwindSafe for SpecMap
impl Send for SpecMap
impl Sync for SpecMap
impl Unpin for SpecMap
impl UnsafeUnpin for SpecMap
impl UnwindSafe for SpecMap
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