use crate::JsonSchema; use crate::_alloc_prelude::*; macro_rules! wrapper_impl { ($($desc:tt)+) => { forward_impl!(($($desc)+ where T: JsonSchema) => T); }; } wrapper_impl!(<'a, T: ?Sized> JsonSchema for &'a T); wrapper_impl!(<'a, T: ?Sized> JsonSchema for &'a mut T); wrapper_impl!( JsonSchema for Box); wrapper_impl!( JsonSchema for alloc::rc::Rc); wrapper_impl!( JsonSchema for alloc::rc::Weak); wrapper_impl!( JsonSchema for alloc::sync::Arc); wrapper_impl!( JsonSchema for alloc::sync::Weak); #[cfg(feature = "std")] wrapper_impl!( JsonSchema for std::sync::Mutex); #[cfg(feature = "std")] wrapper_impl!( JsonSchema for std::sync::RwLock); wrapper_impl!( JsonSchema for core::cell::Cell); wrapper_impl!( JsonSchema for core::cell::RefCell); wrapper_impl!(<'a, T: ?Sized + ToOwned> JsonSchema for alloc::borrow::Cow<'a, T>); wrapper_impl!( JsonSchema for core::num::Wrapping); wrapper_impl!( JsonSchema for core::cmp::Reverse);