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

Method as_ref

ctutils/src/ct_option.rs:88–93  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

86 #[inline]
87 #[must_use]
88 pub const fn as_ref(&self) -> CtOption<&T> {
89 CtOption {
90 value: &self.value,
91 is_some: self.is_some,
92 }
93 }
94
95 /// Convert from `CtOption<T>` (or `&CtOption<T>`) to `CtOption<&T::Target>`, for types which
96 /// impl the [`Deref`] trait.

Callers 3

encode_blobsFunction · 0.45
as_derefMethod · 0.45
deserializeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected