pub struct OnCopied(/* private fields */);Expand description
What runs after a block’s text has landed on the clipboard.
Code owns the copy; what to tell the user about it is the caller’s — a
snackbar, a status line, nothing. The closure is erased here so
Code::on_copied can take a plain generic and CodeConfig can carry
it through a hook that declines the fence.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OnCopied
impl !Send for OnCopied
impl !Sync for OnCopied
impl !UnwindSafe for OnCopied
impl Freeze for OnCopied
impl Unpin for OnCopied
impl UnsafeUnpin for OnCopied
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