MCPcopy Index your code
hub / github.com/RustPython/RustPython / flatten

Method flatten

crates/vm/src/function/argument.rs:587–589  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

585impl<T> OptionalOption<T> {
586 #[inline]
587 pub fn flatten(self) -> Option<T> {
588 self.into_option().flatten()
589 }
590}
591
592impl<T> FromArgs for OptionalArg<T>

Callers 15

thenMethod · 0.45
process_python_libsFunction · 0.45
setlocaleFunction · 0.45
openlogFunction · 0.45
syslogFunction · 0.45
seedMethod · 0.45
_initMethod · 0.45
sendmsgMethod · 0.45
selectFunction · 0.45
getgrgidFunction · 0.45
add_done_callbackMethod · 0.45
cancelMethod · 0.45

Calls 1

into_optionMethod · 0.80

Tested by

no test coverage detected