INNER CODE UNIT · Rust
Some
autopilot-rs/autopilot-rs · src/bitmap.rs:363
if let Some(point) = self.find(Some(rect), Some(start_point), predicate) {
matched(point);
if let Some(next_point) = rect.iter_point(point) {
start_point = next_point;
continue;
}
}
break;
}
}
#[cfg(target_os = "macos")]
fn system_copy_to_pasteboard(&self) -> ImageResult<()> {
use objc2::AnyThread;
use objc2::rc::Retained;
use objc2::runtime::ProtocolObject;
use objc2_app_kit::{NSImage, NSPasteboard, NSPasteboardWriting};