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

Method and

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

Source from the content-addressed store, hash-verified

249 #[inline]
250 #[must_use]
251 pub fn and<U>(self, mut optb: CtOption<U>) -> CtOption<U> {
252 optb.is_some &= self.is_some;
253 optb
254 }
255
256 /// Calls the provided callback with the wrapped inner value, returning the resulting
257 /// [`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