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

Method and

ctutils/src/ct_option.rs:249–252  ·  view source on GitHub ↗
(self, mut optb: CtOption<U>)

Source from the content-addressed store, hash-verified

247 #[inline]
248 #[must_use]
249 pub fn and<U>(self, mut optb: CtOption<U>) -> CtOption<U> {
250 optb.is_some &= self.is_some;
251 optb
252 }
253
254 /// Calls the provided callback with the wrapped inner value, returning the resulting
255 /// [`CtOption`] value in the event that `self.is_some()` is [`Choice::TRUE`], or if not

Callers 1

filter_byMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected