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

Method drop

dit/src/lib.rs:91–95  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

89#[cfg(target_arch = "aarch64")]
90impl Drop for Guard<'_> {
91 fn drop(&mut self) {
92 if self.dit.supported.get() {
93 unsafe { restore_dit(self.was_enabled) }
94 }
95 }
96}
97
98/// Detect if DIT is enabled for the current thread by checking the processor state register.

Callers

nothing calls this directly

Calls 2

restore_ditFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected