pub struct LexicalNodeReplacement {
pub replace: NodeClass,
pub with: NodeReplace,
pub with_klass: Option<NodeClass>,
}Expand description
LexicalNodeReplacement: an entry of CreateEditorArgs::nodes (as a
NodeClass, through From) that makes $create and the $create*
functions of the replace class give what with makes of their node.
with_klass, the class with makes (which must extend replace and be
registered too), lets transforms and mutation listeners registered for
replace reach its nodes.
Fields§
§replace: NodeClass§with: NodeReplace§with_klass: Option<NodeClass>Trait Implementations§
Source§impl Clone for LexicalNodeReplacement
impl Clone for LexicalNodeReplacement
Source§impl From<LexicalNodeReplacement> for NodeClass
impl From<LexicalNodeReplacement> for NodeClass
Source§fn from(replacement: LexicalNodeReplacement) -> Self
fn from(replacement: LexicalNodeReplacement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LexicalNodeReplacement
impl !Send for LexicalNodeReplacement
impl !Sync for LexicalNodeReplacement
impl !UnwindSafe for LexicalNodeReplacement
impl Forget for LexicalNodeReplacement
impl Freeze for LexicalNodeReplacement
impl Move for LexicalNodeReplacement
impl Unpin for LexicalNodeReplacement
impl UnsafeUnpin for LexicalNodeReplacement
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