pub struct AlgorithmEfficiency {
pub time_complexity: String,
pub space_complexity: String,
pub actual_time_coefficient: f64,
pub actual_space_coefficient: f64,
}Expand description
Algorithm efficiency metrics
Fields§
§time_complexity: StringTime complexity (O(n), O(n log n), etc.)
space_complexity: StringSpace complexity (O(1), O(n), etc.)
actual_time_coefficient: f64Actual observed time complexity coefficient
actual_space_coefficient: f64Actual observed space coefficient
Trait Implementations§
Source§impl Clone for AlgorithmEfficiency
impl Clone for AlgorithmEfficiency
Source§fn clone(&self) -> AlgorithmEfficiency
fn clone(&self) -> AlgorithmEfficiency
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 AlgorithmEfficiency
impl Debug for AlgorithmEfficiency
Source§impl Default for AlgorithmEfficiency
impl Default for AlgorithmEfficiency
Source§impl<'de> Deserialize<'de> for AlgorithmEfficiency
impl<'de> Deserialize<'de> for AlgorithmEfficiency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AlgorithmEfficiency
impl RefUnwindSafe for AlgorithmEfficiency
impl Send for AlgorithmEfficiency
impl Sync for AlgorithmEfficiency
impl Unpin for AlgorithmEfficiency
impl UnwindSafe for AlgorithmEfficiency
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