pub struct SplitAtPointCaretNextOptions {
pub root_mode: RootMode,
pub should_split: fn(&NodeRef, &'static str) -> bool,
pub remove_empty_destination: bool,
}Expand description
SplitAtPointCaretNextOptions. $copyElementNode and
$splitTextPointCaretNext are always their defaults ($copyNode and
split_text_point_caret).
Fields§
§root_mode: RootModeIf the parent matches root_mode a split will not occur (default
'shadowRoot').
should_split: fn(&NodeRef, &'static str) -> bool$shouldSplit(node, edge), with edge "first" or "last": whether
to create an empty split of an element that can be empty (default
always).
remove_empty_destination: boolIf the destination would create an empty split on both sides, then
remove it instead of splitting (default false).
Trait Implementations§
Source§impl Clone for SplitAtPointCaretNextOptions
impl Clone for SplitAtPointCaretNextOptions
impl Copy for SplitAtPointCaretNextOptions
Auto Trait Implementations§
impl Forget for SplitAtPointCaretNextOptions
impl Freeze for SplitAtPointCaretNextOptions
impl Move for SplitAtPointCaretNextOptions
impl RefUnwindSafe for SplitAtPointCaretNextOptions
impl Send for SplitAtPointCaretNextOptions
impl Sync for SplitAtPointCaretNextOptions
impl Unpin for SplitAtPointCaretNextOptions
impl UnsafeUnpin for SplitAtPointCaretNextOptions
impl UnwindSafe for SplitAtPointCaretNextOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more