pub struct AutoEmbedOption {
pub title: String,
pub on_select: Rc<dyn Fn(Option<NodeRef>) -> Result<(), LexicalError>>,
}Expand description
AutoEmbedOption: an item of the embed menu, its key its title, with
what choosing it does.
Fields§
§title: String§on_select: Rc<dyn Fn(Option<NodeRef>) -> Result<(), LexicalError>>onSelect(targetNode).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AutoEmbedOption
impl !Send for AutoEmbedOption
impl !Sync for AutoEmbedOption
impl !UnwindSafe for AutoEmbedOption
impl Forget for AutoEmbedOption
impl Freeze for AutoEmbedOption
impl Move for AutoEmbedOption
impl Unpin for AutoEmbedOption
impl UnsafeUnpin for AutoEmbedOption
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