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