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

Method from

ctutils/src/ct_option.rs:612–614  ·  view source on GitHub ↗
(src: CtOption<T>)

Source from the content-addressed store, hash-verified

610/// </div>
611impl<T> From<CtOption<T>> for Option<T> {
612 fn from(src: CtOption<T>) -> Option<T> {
613 src.into_option()
614 }
615}
616
617/// NOTE: in order to be able to unwrap the `subtle::CtOption` we rely on a `Default` bound in

Callers

nothing calls this directly

Calls 4

defaultFunction · 0.85
into_optionMethod · 0.80
is_someMethod · 0.80
unwrap_orMethod · 0.80

Tested by

no test coverage detected