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

Method ct_assign

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

Source from the content-addressed store, hash-verified

566
567impl<T: CtAssign> CtAssign for CtOption<T> {
568 fn ct_assign(&mut self, other: &Self, choice: Choice) {
569 self.value.ct_assign(&other.value, choice);
570 self.is_some.ct_assign(&other.is_some, choice);
571 }
572}
573impl<T: CtAssign> CtAssignSlice for CtOption<T> {}
574

Callers 1

insert_ifMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected