We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f206445 commit d841c78Copy full SHA for d841c78
toml-span/src/de_helpers.rs
@@ -136,6 +136,7 @@ impl<'de> TableHelper<'de> {
136
/// Note that if the key exists but deserialization fails, an error will be
137
/// appended and if [`Self::finalize`] is called it will return that error
138
/// along with any others that occurred
139
+ #[inline]
140
pub fn optional<T: Deserialize<'de>>(&mut self, name: &'static str) -> Option<T> {
141
self.optional_s(name).map(|v| v.value)
142
}
0 commit comments