pub trait CopySource {
// Required methods
fn copy_kinds(&self) -> &[ClipKind];
fn copy_payload(&self) -> Option<ClipPayload>;
}Expand description
A component that can produce a typed payload from its current selection.
Required Methods§
Sourcefn copy_kinds(&self) -> &[ClipKind]
fn copy_kinds(&self) -> &[ClipKind]
The kinds this source can offer, richest first.
Sourcefn copy_payload(&self) -> Option<ClipPayload>
fn copy_payload(&self) -> Option<ClipPayload>
Produce the payload for the current selection (richest representation).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".