Lines Matching full:into
1 // Unlike `impl Into<Option<T>>` or `Option<impl Into<T>>`, this isn't ambiguous for the `None`
14 /// This allows a builder function to both accept any value that can [`Into::into`] `T` (like
15 /// `&str` into `OsStr`) as well as `None` to reset it to the default. This is needed to
16 /// workaround a limitation where you can't have a function argument that is `impl Into<Option<T>>`
17 /// where `T` is `impl Into<S>` accept `None` as its type is ambiguous.
117 Some(s) => Resettable::Value(s.into()), in into_resettable()
126 Some(s) => Resettable::Value(s.into()), in into_resettable()
135 Some(s) => Resettable::Value(s.into()), in into_resettable()
171 impl<I: Into<ValueRange>> IntoResettable<ValueRange> for I {
173 Resettable::Value(self.into()) in into_resettable()
177 impl<I: Into<ValueParser>> IntoResettable<ValueParser> for I {
179 Resettable::Value(self.into()) in into_resettable()
183 impl<I: Into<String>> IntoResettable<String> for I {
185 Resettable::Value(self.into()) in into_resettable()
189 impl<I: Into<StyledStr>> IntoResettable<StyledStr> for I {
191 Resettable::Value(self.into()) in into_resettable()
195 impl<I: Into<OsStr>> IntoResettable<OsStr> for I {
197 Resettable::Value(self.into()) in into_resettable()
201 impl<I: Into<Str>> IntoResettable<Str> for I {
203 Resettable::Value(self.into()) in into_resettable()
207 impl<I: Into<crate::Id>> IntoResettable<crate::Id> for I {
209 Resettable::Value(self.into()) in into_resettable()