#[repr(C)]pub struct ClipboardWrite {
pub size: usize,
pub location: Type,
pub contents: *const ClipboardContent,
pub contents_len: usize,
}Expand description
A semantic, atomic clipboard write.
This is a sized struct. The callback must only access fields present in the
size reported by size. The request, contents array, MIME strings, and
data strings are all borrowed and valid only for the callback duration.
All entries in contents are representations of the same logical value
and must be committed atomically. A contents_len of zero requests that
the destination be cleared. This is distinct from a content entry whose data
has zero length.
Fields§
§size: usizeSize of this struct in bytes.
location: TypeClipboard destination.
contents: *const ClipboardContentBorrowed array of MIME representations.
contents_len: usizeNumber of entries in contents; zero means clear the destination.
Trait Implementations§
Source§impl Clone for ClipboardWrite
impl Clone for ClipboardWrite
Source§fn clone(&self) -> ClipboardWrite
fn clone(&self) -> ClipboardWrite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClipboardWrite
Source§impl Debug for ClipboardWrite
impl Debug for ClipboardWrite
Auto Trait Implementations§
impl !Send for ClipboardWrite
impl !Sync for ClipboardWrite
impl Freeze for ClipboardWrite
impl RefUnwindSafe for ClipboardWrite
impl Unpin for ClipboardWrite
impl UnsafeUnpin for ClipboardWrite
impl UnwindSafe for ClipboardWrite
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