Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ as_mut
Method
as_mut
ctutils/src/ct_option.rs:78–83 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
76
#[inline]
77
#[must_use]
78
pub const fn as_mut(&mut self) -> CtOption<&mut T> {
79
CtOption {
80
value: &mut self.value,
81
is_some: self.is_some,
82
}
83
}
84
85
/// Convert from a `&CtOption<T>` to `CtOption<&T>`.
86
#[inline]
Callers
1
as_deref_mut
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected