pub enum WcetFunction {
Bounded {
name: String,
cycles: u64,
instr_count: usize,
},
Declined {
name: String,
reason: WcetDecline,
note: String,
},
}Expand description
The per-function result: either a sound cycle bound or a loud decline.
Variants§
Bounded
A sound upper bound on this function’s execution in cycles.
Fields
Declined
No bound emitted — a loud decline with a machine-readable reason. A decline is emitted (rather than the function omitted) so the map is COMPLETE: a consumer sees every function is either bounded or explicitly unbounded, never silently missing.
Implementations§
Source§impl WcetFunction
impl WcetFunction
Sourcepub fn declined(name: impl Into<String>, reason: WcetDecline) -> Self
pub fn declined(name: impl Into<String>, reason: WcetDecline) -> Self
Construct a decline, filling in the note from the reason.
Trait Implementations§
Source§impl Clone for WcetFunction
impl Clone for WcetFunction
Source§fn clone(&self) -> WcetFunction
fn clone(&self) -> WcetFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WcetFunction
impl Debug for WcetFunction
Source§impl<'de> Deserialize<'de> for WcetFunction
impl<'de> Deserialize<'de> for WcetFunction
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WcetFunction
Source§impl PartialEq for WcetFunction
impl PartialEq for WcetFunction
Source§impl Serialize for WcetFunction
impl Serialize for WcetFunction
impl StructuralPartialEq for WcetFunction
Auto Trait Implementations§
impl Freeze for WcetFunction
impl RefUnwindSafe for WcetFunction
impl Send for WcetFunction
impl Sync for WcetFunction
impl Unpin for WcetFunction
impl UnsafeUnpin for WcetFunction
impl UnwindSafe for WcetFunction
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
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
Compare self to
key and return true if they are equal.