oxilean_runtime/closure/stackoverflow_traits.rs
1//! # StackOverflow - Trait Implementations
2//!
3//! This module contains trait implementations for `StackOverflow`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//! - `Error`
9//!
10//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
11
12use super::types::StackOverflow;
13use std::fmt;
14
15impl fmt::Display for StackOverflow {
16 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
17 write!(
18 f,
19 "stack overflow: depth {} exceeds maximum {}",
20 self.depth, self.max_depth
21 )
22 }
23}
24
25impl std::error::Error for StackOverflow {}