pub trait PreventDefault<R: Runtime> {
// Required methods
fn prevent_default_script(&self) -> Script;
fn try_prevent_default_script(&self) -> Option<Script>;
}Expand description
Provide access to the script.
Required Methods§
Sourcefn prevent_default_script(&self) -> Script
fn prevent_default_script(&self) -> Script
Sourcefn try_prevent_default_script(&self) -> Option<Script>
fn try_prevent_default_script(&self) -> Option<Script>
Attempt to retrieve the script.
Returns Some if the plugin was built with manual injection.
Otherwise returns None.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".