Debian Codegraph @

examples/image_path.rs

raw symbols SCIP
1 use notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#;
2
3 fn mainrust-analyzer cargo notify-rust 4.18.0 main().() -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#>> {
4 #[cfg(target_os = "macos")]
5 cfg_ifrust-analyzer cargo cfg-if 1.0.4 crate/::cfg_ifrust-analyzer cargo cfg-if 1.0.4 cfg_if!! {
6 if #[cfg(feature = "preview-macos-un")] {
7 notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::check_bundle().unwrap();
8 notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::request_auth_blocking().unwrap();
9 } else {
10 let bundle_id = notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::get_bundle_identifier_or_default("safari");
11 notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::set_application(&bundle_id).unwrap();
12 }
13 }
14 Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#::newrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]new().()
15 .summaryrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]summary().(".image_path()")
16 .bodyrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]body().("Trying to open an image")
17 .image_pathrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]image_path().("./examples/octodex.jpg")
18 .showrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]show().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
19
20 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
21 }