File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 143143//!
144144//! ## Transforming contained values
145145//!
146+ //! * [`flatten`] removes one level of nesting from an
147+ //! [`Option<Option<T>>`]
146148//! * [`map`] transforms [`Some<T>`] to [`Some<U>`] using the provided
147149//! function
148150//! * [`map_or`] transforms [`Some<T>`] to a value of `U` using the
155157//! [`Err(err)`] using the provided default `err` value
156158//! * [`ok_or_else`] transforms [`Some(v)`] to [`Ok(v)`], and [`None`] to
157159//! a value of [`Err<E>`] using the provided function
160+ //! * [`transpose`] transposes an [`Option`] of a [`Result`] into a
161+ //! [`Result`] of an [`Option`]
158162//!
159163//! [`Err(err)`]: Err
164+ //! [`flatten`]: Option::flatten
160165//! [`map`]: Option::map
161166//! [`map_or`]: Option::map_or
162167//! [`map_or_else`]: Option::map_or_else
163168//! [`Ok(v)`]: Ok
164169//! [`ok_or`]: Option::ok_or
165170//! [`ok_or_else`]: Option::ok_or_else
166171//! [`Some(v)`]: Some
172+ //! [`transpose`]: Option::transpose
167173//!
168174//! ## Boolean operators
169175//!
You can’t perform that action at this time.
0 commit comments