pub struct ComplexityWitness {
pub algorithm: String,
pub complexity_claim: String,
pub nodes_touched: usize,
pub edges_scanned: usize,
pub queue_peak: usize,
}Fields§
§algorithm: String§complexity_claim: String§nodes_touched: usize§edges_scanned: usize§queue_peak: usizeImplementations§
Source§impl ComplexityWitness
impl ComplexityWitness
pub fn to_cgse_witness_artifact( &self, algorithm_family: &str, operation: &str, artifact_refs: &[&str], ) -> CgseWitnessArtifact
Trait Implementations§
Source§impl Clone for ComplexityWitness
impl Clone for ComplexityWitness
Source§fn clone(&self) -> ComplexityWitness
fn clone(&self) -> ComplexityWitness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComplexityWitness
impl Debug for ComplexityWitness
Source§impl<'de> Deserialize<'de> for ComplexityWitness
impl<'de> Deserialize<'de> for ComplexityWitness
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
impl Eq for ComplexityWitness
Source§impl PartialEq for ComplexityWitness
impl PartialEq for ComplexityWitness
Source§impl Serialize for ComplexityWitness
impl Serialize for ComplexityWitness
impl StructuralPartialEq for ComplexityWitness
Auto Trait Implementations§
impl Freeze for ComplexityWitness
impl RefUnwindSafe for ComplexityWitness
impl Send for ComplexityWitness
impl Sync for ComplexityWitness
impl Unpin for ComplexityWitness
impl UnsafeUnpin for ComplexityWitness
impl UnwindSafe for ComplexityWitness
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more