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

Class CtOption

ctutils/src/ct_option.rs:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41/// evaluation similar methods on [`Option`] provide.
42#[derive(Clone, Copy, Debug)]
43pub struct CtOption<T> {
44 value: T,
45 is_some: Choice,
46}
47
48impl<T> CtOption<T> {
49 /// Construct a new [`CtOption`], with a [`Choice`] parameter `is_some` as a stand-in for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected