pub struct PasteEvent {
pub text: String,
pub bracketed: bool,
}Expand description
A paste event from bracketed paste mode.
Fields§
§text: StringThe pasted text content.
bracketed: boolTrue if this came from bracketed paste mode.
When true, the text was received atomically and should be treated as a single paste operation rather than individual key presses.
Implementations§
Trait Implementations§
Source§impl Clone for PasteEvent
impl Clone for PasteEvent
Source§fn clone(&self) -> PasteEvent
fn clone(&self) -> PasteEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PasteEvent
impl Debug for PasteEvent
Source§impl PartialEq for PasteEvent
impl PartialEq for PasteEvent
impl Eq for PasteEvent
impl StructuralPartialEq for PasteEvent
Auto Trait Implementations§
impl Freeze for PasteEvent
impl RefUnwindSafe for PasteEvent
impl Send for PasteEvent
impl Sync for PasteEvent
impl Unpin for PasteEvent
impl UnwindSafe for PasteEvent
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