MCPcopy Create free account
hub / github.com/RustCrypto/utils / ct_eq

Method ct_eq

ctutils/src/ct_option.rs:579–582  ·  view source on GitHub ↗
(&self, other: &CtOption<T>)

Source from the content-addressed store, hash-verified

577impl<T: CtEq> CtEq for CtOption<T> {
578 #[inline]
579 fn ct_eq(&self, other: &CtOption<T>) -> Choice {
580 (self.is_some & other.is_some & self.value.ct_eq(&other.value))
581 | (self.is_none() & other.is_none())
582 }
583}
584
585impl<T: CtEq> CtEqSlice for CtOption<T> {}

Callers

nothing calls this directly

Calls 2

is_noneMethod · 0.80
ct_eqFunction · 0.70

Tested by

no test coverage detected