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

Method enable

dit/src/lib.rs:47–58  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

45 #[cfg(target_arch = "aarch64")]
46 #[must_use]
47 pub fn enable(&self) -> Guard<'_> {
48 let was_enabled = if self.is_supported() {
49 unsafe { set_dit_enabled() }
50 } else {
51 false
52 };
53
54 Guard {
55 dit: self,
56 was_enabled,
57 }
58 }
59
60 /// Check if DIT has been enabled.
61 pub fn is_enabled(&self) -> bool {

Callers 1

high_level_apiFunction · 0.80

Calls 2

set_dit_enabledFunction · 0.85
is_supportedMethod · 0.80

Tested by 1

high_level_apiFunction · 0.64