pub struct WcetHintKey {
pub key: String,
pub build_local: bool,
}Expand description
(#1063) The durable per-function hint-key contract, emitted in the sidecar so
a consumer joins against the key --wcet-hints will actually accept instead
of re-deriving it from mangled symbols (a by-hand copy of a shipped
decision — the drift class this project removes, not adds).
key is chosen by assign_hint_keys, in priority order: the export name;
else the name-section name with its non-content-derived mangling components
stripped (stable_name_key) when that stripped form is unique in the
module; else the raw name-section name; else func_<index> as the last
resort. build_local is scry#137’s flag: true means the key is NOT
expected to survive an unrelated rebuild (a raw mangled name still carrying
its crate disambiguator, or a bare index), so a hints file keyed on it must
be regenerated per build.
Fields§
§key: StringThe canonical key a --wcet-hints entry addresses this function by.
build_local: booltrue when the key churns across rebuilds (raw disambiguated mangling,
or an index): usable only against the build that emitted this sidecar.
Trait Implementations§
Source§impl Clone for WcetHintKey
impl Clone for WcetHintKey
Source§fn clone(&self) -> WcetHintKey
fn clone(&self) -> WcetHintKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WcetHintKey
impl Debug for WcetHintKey
Source§impl<'de> Deserialize<'de> for WcetHintKey
impl<'de> Deserialize<'de> for WcetHintKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WcetHintKey
Source§impl PartialEq for WcetHintKey
impl PartialEq for WcetHintKey
Source§impl Serialize for WcetHintKey
impl Serialize for WcetHintKey
impl StructuralPartialEq for WcetHintKey
Auto Trait Implementations§
impl Freeze for WcetHintKey
impl RefUnwindSafe for WcetHintKey
impl Send for WcetHintKey
impl Sync for WcetHintKey
impl Unpin for WcetHintKey
impl UnsafeUnpin for WcetHintKey
impl UnwindSafe for WcetHintKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.