oxilean_kernel/no_std_compat/stackguard_traits.rs
1//! # StackGuard - Trait Implementations
2//!
3//! This module contains trait implementations for `StackGuard`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Drop`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::StackGuard;
12
13impl Drop for StackGuard<'_> {
14 fn drop(&mut self) {
15 *self.depth -= 1;
16 }
17}