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

Method ct_eq

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

Source from the content-addressed store, hash-verified

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