pub(crate) trait DocumentExecCommandSupport {
// Required methods
fn is_command_supported(&self, command_id: DOMString) -> bool;
fn is_command_indeterminate(
&self,
cx: &mut JSContext,
command_id: DOMString,
) -> bool;
fn command_state_for_command(
&self,
cx: &mut JSContext,
command_id: DOMString,
) -> bool;
fn command_value_for_command(
&self,
cx: &mut JSContext,
command_id: DOMString,
) -> DOMString;
fn check_support_and_enabled(
&self,
cx: &mut JSContext,
command_id: &DOMString,
) -> Option<(CommandName, DomRoot<Selection>)>;
fn exec_command_for_command_id(
&self,
cx: &mut JSContext,
command_id: DOMString,
value: DOMString,
) -> bool;
}Required Methods§
fn is_command_supported(&self, command_id: DOMString) -> bool
fn is_command_indeterminate( &self, cx: &mut JSContext, command_id: DOMString, ) -> bool
fn command_state_for_command( &self, cx: &mut JSContext, command_id: DOMString, ) -> bool
fn command_value_for_command( &self, cx: &mut JSContext, command_id: DOMString, ) -> DOMString
fn check_support_and_enabled( &self, cx: &mut JSContext, command_id: &DOMString, ) -> Option<(CommandName, DomRoot<Selection>)>
fn exec_command_for_command_id( &self, cx: &mut JSContext, command_id: DOMString, value: DOMString, ) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".