pub enum BigOAlgorithmComplexity {
Show 17 variants
BetterThanO1,
O1,
BetweenO1AndOLogN,
OLogN,
BetweenOLogNAndON,
ON,
BetweenONAndONLogN,
ONLogN,
BetweenONLogNAndON2,
ON2,
BetweenON2AndON3,
ON3,
BetweenON3AndON4,
ON4,
BetweenON4AndOkN,
OkN,
WorseThanExponential,
}Expand description
Possible time & space complexity analysis results, in big-O notation. Results are for a single operation – remember a pass have several operations, so the time for the analysis should have ‘* 2 * p’ added – ‘p’ being the size for each one of the 2 passes required for the analysis.
Variants
BetterThanO1
O1
BetweenO1AndOLogN
OLogN
BetweenOLogNAndON
ON
BetweenONAndONLogN
ONLogN
BetweenONLogNAndON2
ON2
BetweenON2AndON3
ON3
BetweenON3AndON4
ON4
BetweenON4AndOkN
OkN
WorseThanExponential
Implementations
sourceimpl BigOAlgorithmComplexity
impl BigOAlgorithmComplexity
sourcepub fn as_pretty_str(&self) -> &'static str
pub fn as_pretty_str(&self) -> &'static str
verbose description for each enum element
sourcepub fn as_time_pretty_str(&self) -> &'static str
pub fn as_time_pretty_str(&self) -> &'static str
same as [as_pretty_str()], with additional info for time analysis
sourcepub fn as_space_pretty_str(&self) -> &'static str
pub fn as_space_pretty_str(&self) -> &'static str
verbose description for each enum element, provided we’re analysing space complexity
Trait Implementations
sourceimpl Clone for BigOAlgorithmComplexity
impl Clone for BigOAlgorithmComplexity
sourcefn clone(&self) -> BigOAlgorithmComplexity
fn clone(&self) -> BigOAlgorithmComplexity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BigOAlgorithmComplexity
impl Debug for BigOAlgorithmComplexity
impl Copy for BigOAlgorithmComplexity
impl StructuralPartialEq for BigOAlgorithmComplexity
Auto Trait Implementations
impl RefUnwindSafe for BigOAlgorithmComplexity
impl Send for BigOAlgorithmComplexity
impl Sync for BigOAlgorithmComplexity
impl Unpin for BigOAlgorithmComplexity
impl UnwindSafe for BigOAlgorithmComplexity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more