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

Method as_deref_mut

ctutils/src/ct_option.rs:110–115  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

108 #[inline]
109 #[must_use]
110 pub fn as_deref_mut(&mut self) -> CtOption<&mut T::Target>
111 where
112 T: DerefMut,
113 {
114 self.as_mut().map(DerefMut::deref_mut)
115 }
116
117 /// Return the contained value, consuming the `self` value.
118 ///

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
as_mutMethod · 0.45

Tested by

no test coverage detected