pub struct DerivedSpec {
pub computed_return_bound: Option<ComputedBound>,
pub param_freed: BTreeMap<usize, bool>,
pub param_dereferenced: BTreeMap<usize, bool>,
pub return_is_allocated: bool,
}Expand description
Analysis-derived specification for a function.
Produced by the summary module and merged with YAML specs in
AnalyzedSpecRegistry.
Fields§
§computed_return_bound: Option<ComputedBound>Computed return interval bound (if applicable).
param_freed: BTreeMap<usize, bool>Whether the callee frees param[i] (directly or transitively).
param_dereferenced: BTreeMap<usize, bool>Whether the callee dereferences param[i].
return_is_allocated: boolWhether the function returns newly allocated memory.
Implementations§
Source§impl DerivedSpec
impl DerivedSpec
Trait Implementations§
Source§impl Clone for DerivedSpec
impl Clone for DerivedSpec
Source§fn clone(&self) -> DerivedSpec
fn clone(&self) -> DerivedSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 DerivedSpec
impl Debug for DerivedSpec
Source§impl PartialEq for DerivedSpec
impl PartialEq for DerivedSpec
impl Eq for DerivedSpec
impl StructuralPartialEq for DerivedSpec
Auto Trait Implementations§
impl Freeze for DerivedSpec
impl RefUnwindSafe for DerivedSpec
impl Send for DerivedSpec
impl Sync for DerivedSpec
impl Unpin for DerivedSpec
impl UnsafeUnpin for DerivedSpec
impl UnwindSafe for DerivedSpec
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.