pub(crate) trait NodeExecCommandSupport {
Show 17 methods
// Required methods
fn same_editing_host(&self, other: &Node) -> bool;
fn is_block_node(&self) -> bool;
fn is_inline_node(&self) -> bool;
fn block_node_of(&self) -> Option<DomRoot<Node>>;
fn is_visible(&self) -> bool;
fn is_invisible(&self) -> bool;
fn is_block_start_point(&self, offset: usize) -> bool;
fn is_block_end_point(&self, offset: u32) -> bool;
fn is_block_boundary_point(&self, offset: u32) -> bool;
fn is_collapsed_block_prop(&self) -> bool;
fn follows_a_line_break(&self) -> bool;
fn precedes_a_line_break(&self) -> bool;
fn canonical_space_sequence(
n: usize,
non_breaking_start: bool,
non_breaking_end: bool,
) -> String;
fn canonicalize_whitespace(&self, offset: u32, fix_collapsed_space: bool);
fn remove_extraneous_line_breaks_before(&self, cx: &mut JSContext);
fn remove_extraneous_line_breaks_at_the_end_of(&self, cx: &mut JSContext);
fn remove_preserving_its_descendants(&self, cx: &mut JSContext);
}Required Methods§
fn same_editing_host(&self, other: &Node) -> bool
fn is_block_node(&self) -> bool
fn is_inline_node(&self) -> bool
fn block_node_of(&self) -> Option<DomRoot<Node>>
fn is_visible(&self) -> bool
fn is_invisible(&self) -> bool
fn is_block_start_point(&self, offset: usize) -> bool
fn is_block_end_point(&self, offset: u32) -> bool
fn is_block_boundary_point(&self, offset: u32) -> bool
fn is_collapsed_block_prop(&self) -> bool
fn follows_a_line_break(&self) -> bool
fn precedes_a_line_break(&self) -> bool
fn canonical_space_sequence( n: usize, non_breaking_start: bool, non_breaking_end: bool, ) -> String
fn canonicalize_whitespace(&self, offset: u32, fix_collapsed_space: bool)
fn remove_extraneous_line_breaks_before(&self, cx: &mut JSContext)
fn remove_extraneous_line_breaks_at_the_end_of(&self, cx: &mut JSContext)
fn remove_preserving_its_descendants(&self, cx: &mut JSContext)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.