pub enum Bound {
Known(u64),
ExceedsLimit,
}Expand description
A bounded estimate that never wraps attacker-controlled arithmetic.
Variants§
Known(u64)
The value is known and no greater than the estimator’s cap.
ExceedsLimit
The value overflowed or exceeded the estimator’s cap.
Trait Implementations§
impl Copy for Bound
impl Eq for Bound
impl StructuralPartialEq for Bound
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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