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

Method from

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

Source from the content-addressed store, hash-verified

608/// </div>
609impl<T> From<CtOption<T>> for Option<T> {
610 fn from(src: CtOption<T>) -> Option<T> {
611 src.into_option()
612 }
613}
614
615/// 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