pub struct ClipboardContent<'t> {
pub mime: &'t str,
pub data: &'t str,
}Expand description
One MIME representation in a clipboard write.
The data is binary-safe and has already been decoded from any protocol-level encoding. A zero-length data string is an explicit empty representation; it does not clear the clipboard.
Fields§
§mime: &'t strMIME type of the representation.
data: &'t strDecoded representation data.
The C API delivers binary-safe bytes, but this field is &str for
compatibility within 0.2.x, so data that is not valid UTF-8 (e.g. an
image/png representation) is exposed as an empty string. 0.3.0
changes this field to &[u8].
Trait Implementations§
Source§impl<'t> Clone for ClipboardContent<'t>
impl<'t> Clone for ClipboardContent<'t>
impl<'t> Copy for ClipboardContent<'t>
Auto Trait Implementations§
impl<'t> Freeze for ClipboardContent<'t>
impl<'t> RefUnwindSafe for ClipboardContent<'t>
impl<'t> Send for ClipboardContent<'t>
impl<'t> Sync for ClipboardContent<'t>
impl<'t> Unpin for ClipboardContent<'t>
impl<'t> UnsafeUnpin for ClipboardContent<'t>
impl<'t> UnwindSafe for ClipboardContent<'t>
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