1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
// === === === === === === Warning === === === === === === //
// This file has been GENERATED by the BUILD SCRIPT. Any   //
// modifications will be DISCARDED when switching to a     //
// different version/release channel/target platform of    //
// the Rust toolchain or if the build script receives an   //
// update.                                                 //
// === === === === === === === === === === === === === === //

/// Only implements the `Debug` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyDebug<T: Debug> (pub T);
impl<T: Debug> From<T> for OnlyDebug<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: Debug> Debug for OnlyDebug<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: Debug> OnlyDebug<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `Display` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyDisplay<T: Display> (pub T);
impl<T: Display> From<T> for OnlyDisplay<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: Display> Display for OnlyDisplay<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: Display> OnlyDisplay<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `LowerExp` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyLowerExp<T: LowerExp> (pub T);
impl<T: LowerExp> From<T> for OnlyLowerExp<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: LowerExp> LowerExp for OnlyLowerExp<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: LowerExp> OnlyLowerExp<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `LowerHex` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyLowerHex<T: LowerHex> (pub T);
impl<T: LowerHex> From<T> for OnlyLowerHex<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: LowerHex> LowerHex for OnlyLowerHex<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: LowerHex> OnlyLowerHex<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `Octal` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyOctal<T: Octal> (pub T);
impl<T: Octal> From<T> for OnlyOctal<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: Octal> Octal for OnlyOctal<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: Octal> OnlyOctal<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `Pointer` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyPointer<T: Pointer> (pub T);
impl<T: Pointer> From<T> for OnlyPointer<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: Pointer> Pointer for OnlyPointer<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: Pointer> OnlyPointer<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `UpperExp` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyUpperExp<T: UpperExp> (pub T);
impl<T: UpperExp> From<T> for OnlyUpperExp<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: UpperExp> UpperExp for OnlyUpperExp<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: UpperExp> OnlyUpperExp<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}
/// Only implements the `UpperHex` formatting trait despite any other trait being implemented on `T`.
#[repr(transparent)]
pub struct OnlyUpperHex<T: UpperHex> (pub T);
impl<T: UpperHex> From<T> for OnlyUpperHex<T> {
    #[inline(always)]
    fn from(op: T) -> Self {
        Self(op)
    }
}
impl<T: UpperHex> UpperHex for OnlyUpperHex<T> {
    #[inline(always)]
    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        self.0.fmt(f)
    }
}
impl<T: UpperHex> OnlyUpperHex<T> {
    /// Consumes the adapter and returns the wrapped value.
    #[inline(always)]
    pub fn into_inner(self) -> T {
        self.0
    }
}