1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use super::StrInfo; #[cfg(feature = "std")] /// all automatic [`StrInfo`] implementations for usefull [`std`] types mod std; /// all automatic [`StrInfo`] implementations for usefull [`core`] types mod core; /// A simple [`StrInfo::Context`] wrapper for [`std`] and [`core`] wrapper types pub struct WrapperCtx<'a, T: StrInfo<'a>>(T::Context); impl<'a, T: StrInfo<'a>> Default for WrapperCtx<'a, T> { #[inline] fn default() -> Self { WrapperCtx(T::Context::default()) } }