MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / from_weak

Method from_weak

src/config/system.rs:31–40  ·  view source on GitHub ↗
(weak: Weak<MainWindow>)

Source from the content-addressed store, hash-verified

29 }
30
31 pub(crate) fn from_weak(weak: Weak<MainWindow>) -> Self {
32 if let Some(window) = weak.upgrade() {
33 AutoConfig {
34 delay: window.get_delay(),
35 is_wait: window.get_is_wait(),
36 }
37 } else {
38 unreachable!()
39 }
40 }
41}
42
43impl Executor {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected