oxilean_std/thunk/trythunk_traits.rs
1//! # TryThunk - Trait Implementations
2//!
3//! This module contains trait implementations for `TryThunk`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Debug`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::TryThunk;
12use std::fmt;
13
14impl<T: std::fmt::Debug, E: std::fmt::Debug> std::fmt::Debug for TryThunk<T, E> {
15 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16 match &self.value {
17 Some(v) => write!(f, "TryThunk::Forced({:?})", v),
18 None => write!(f, "TryThunk::Pending"),
19 }
20 }
21}