HomeDevCentral

Lazy evaluate default values

Description

Lazy evaluate default values

Summary:
The unwrap_or_else method allows to pass a closure,
and so allows lazy evaluation of the argument.

Test Plan: println!("Mounting at {}", entry_point);

Reviewers: amj, dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D2289

Details

Provenance
derecksonAuthored on Sep 24 2020, 20:06
derecksonPushed on Sep 13 2021, 19:46
derecksonPushed on Sep 24 2020, 20:06
Reviewer
dereckson
Differential Revision
D2289: Lazy evaluate default values
Parents
rLFfe6f26f02319: Avoid Box<Vec<_>>
Branches
Unknown
Tags
Unknown