We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4326d0 + fc843a9 commit 72993f2Copy full SHA for 72993f2
src/lib.rs
@@ -651,6 +651,9 @@ impl<T> CtOption<T> {
651
652
/// This returns the underlying value if it is `Some`
653
/// or the value produced by the provided closure otherwise.
654
+ ///
655
+ /// This operates in constant time, because the provided closure
656
+ /// is always called.
657
#[inline]
658
pub fn unwrap_or_else<F>(self, f: F) -> T
659
where
0 commit comments