MCPcopy Create free account
hub / github.com/RustCV/RustCV / destroy_all_windows

Function destroy_all_windows

rustcv/src/highgui/mod.rs:116–122  ·  view source on GitHub ↗

销毁所有窗口

()

Source from the content-addressed store, hash-verified

114
115/// 销毁所有窗口
116pub fn destroy_all_windows() -> Result<()> {
117 let mut manager = WINDOW_MANAGER
118 .lock()
119 .map_err(|_| anyhow!("Failed to lock manager"))?;
120 manager.clear();
121 Ok(())
122}
123
124// --- 内部辅助函数 (保持不变) ---
125fn mat_to_u32_buffer(mat: &Mat) -> Result<Vec<u32>> {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected