pub enum ComplexityBound {
Constant,
Linear,
Polynomial(u32),
Exponential,
NonElementary,
}Expand description
A polynomial or exponential complexity bound extracted from a proof.
Variants§
Constant
Constant O(1).
Linear
Linear O(n).
Polynomial(u32)
Polynomial O(n^k) for given k.
Exponential
Exponential O(2^n).
NonElementary
Non-elementary.
Implementations§
Source§impl ComplexityBound
impl ComplexityBound
Sourcepub fn is_polynomial(&self) -> bool
pub fn is_polynomial(&self) -> bool
Returns true if the bound is at most polynomial.
Trait Implementations§
Source§impl Clone for ComplexityBound
impl Clone for ComplexityBound
Source§fn clone(&self) -> ComplexityBound
fn clone(&self) -> ComplexityBound
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 ComplexityBound
impl Debug for ComplexityBound
Source§impl Display for ComplexityBound
impl Display for ComplexityBound
Source§impl PartialEq for ComplexityBound
impl PartialEq for ComplexityBound
impl Eq for ComplexityBound
impl StructuralPartialEq for ComplexityBound
Auto Trait Implementations§
impl Freeze for ComplexityBound
impl RefUnwindSafe for ComplexityBound
impl Send for ComplexityBound
impl Sync for ComplexityBound
impl Unpin for ComplexityBound
impl UnsafeUnpin for ComplexityBound
impl UnwindSafe for ComplexityBound
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