File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 143
143
//!
144
144
//! ## Transforming contained values
145
145
//!
146
+ //! * [`flatten`] removes one level of nesting from an
147
+ //! [`Option<Option<T>>`]
146
148
//! * [`map`] transforms [`Some<T>`] to [`Some<U>`] using the provided
147
149
//! function
148
150
//! * [`map_or`] transforms [`Some<T>`] to a value of `U` using the
155
157
//! [`Err(err)`] using the provided default `err` value
156
158
//! * [`ok_or_else`] transforms [`Some(v)`] to [`Ok(v)`], and [`None`] to
157
159
//! a value of [`Err<E>`] using the provided function
160
+ //! * [`transpose`] transposes an [`Option`] of a [`Result`] into a
161
+ //! [`Result`] of an [`Option`]
158
162
//!
159
163
//! [`Err(err)`]: Err
164
+ //! [`flatten`]: Option::flatten
160
165
//! [`map`]: Option::map
161
166
//! [`map_or`]: Option::map_or
162
167
//! [`map_or_else`]: Option::map_or_else
163
168
//! [`Ok(v)`]: Ok
164
169
//! [`ok_or`]: Option::ok_or
165
170
//! [`ok_or_else`]: Option::ok_or_else
166
171
//! [`Some(v)`]: Some
172
+ //! [`transpose`]: Option::transpose
167
173
//!
168
174
//! ## Boolean operators
169
175
//!
You can’t perform that action at this time.
0 commit comments