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

Method ct_select

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

Source from the content-addressed store, hash-verified

586
587impl<T: CtSelect> CtSelect for CtOption<T> {
588 fn ct_select(&self, other: &Self, choice: Choice) -> Self {
589 Self {
590 value: self.value.ct_select(&other.value, choice),
591 is_some: self.is_some.ct_select(&other.is_some, choice),
592 }
593 }
594}
595
596impl<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