Skip to main content

LinkOpener

Trait LinkOpener 

Source
pub trait LinkOpener {
    // Required method
    fn open(&self, url: &str);
}
Expand description

Opens an address outside the app. Platform layers install one with crate::Ui::set_links: the browser navigates, the desktop asks the system’s browser.

Required Methods§

Source

fn open(&self, url: &str)

Opens url, absolute or relative to the page.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§