Yoda 0.10.5

Browser for Gemini Protocol
1
2
3
4
5
6
7
8
9
10
11
12
use gtk::{gio::SimpleAction, glib::uuid_string_random};

/// [SimpleAction](https://docs.gtk.org/gio/class.SimpleAction.html) wrapper for `Escape` action of `Browser` group
pub trait Escape {
    fn escape() -> Self;
}

impl Escape for SimpleAction {
    fn escape() -> Self {
        SimpleAction::new(&uuid_string_random(), None)
    }
}