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

Class Guard

dit/src/lib.rs:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79/// RAII guard which returns DIT to its previous state when dropped.
80#[cfg(target_arch = "aarch64")]
81pub struct Guard<'a> {
82 /// DIT implementation.
83 dit: &'a Dit,
84
85 /// Previous DIT state before it was enabled.
86 was_enabled: bool,
87}
88
89#[cfg(target_arch = "aarch64")]
90impl Drop for Guard<'_> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected