pub trait VacantEntrySpecFns<K, V, A>: Sized {
// Required methods
spec fn spec_key(self) -> K;
spec fn final_value(self) -> Option<V>;
}Expand description
Specification for a VacantEntry.
Contains the current key for the entry,
and prophesies the final value after this instantiation of the entry API is complete.
The final value is optional, since the user may or may not choose to insert a value.
Required Methods§
Sourcespec fn final_value(self) -> Option<V>
spec fn final_value(self) -> Option<V>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.