pub enum BoundMode {
AllocSizeMinusOne,
AllocSize,
ParamValueMinusOne,
}Expand description
How a return value is bounded by an argument property.
Variants§
AllocSizeMinusOne
Return ∈ [0, alloc_size(param) - 1].
Models: strlen(buf), strnlen(buf, n) (first arg).
AllocSize
Return ∈ [0, alloc_size(param)].
Models: fread(buf, 1, size, fp) where size = alloc_size(buf).
ParamValueMinusOne
Return ∈ [-1, param_value - 1].
Models: read(fd, buf, count) returns [-1, count-1].
Trait Implementations§
impl Eq for BoundMode
impl StructuralPartialEq for BoundMode
Auto Trait Implementations§
impl Freeze for BoundMode
impl RefUnwindSafe for BoundMode
impl Send for BoundMode
impl Sync for BoundMode
impl Unpin for BoundMode
impl UnsafeUnpin for BoundMode
impl UnwindSafe for BoundMode
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.