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

Method ct_select

ctutils/src/ct_option.rs:586–591  ·  view source on GitHub ↗
(&self, other: &Self, choice: Choice)

Source from the content-addressed store, hash-verified

584
585impl<T: CtSelect> CtSelect for CtOption<T> {
586 fn ct_select(&self, other: &Self, choice: Choice) -> Self {
587 Self {
588 value: self.value.ct_select(&other.value, choice),
589 is_some: self.is_some.ct_select(&other.is_some, choice),
590 }
591 }
592}
593
594impl<T: Default> Default for CtOption<T> {

Callers 3

orMethod · 0.45
unwrap_orMethod · 0.45
xorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected