Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Corelib
pub trait BoolTrait>
Some(t)
bool
true
None
fn then_some, T, +Drop>(self: bool, t: T) -> Option
assert!(false.then_some(0) == None); assert!(true.then_some(0) == Some(0));
Was this page helpful?