Trait clipboard_win::Setter

source ·
pub trait Setter<Type: ?Sized> {
    // Required method
    fn write_clipboard(&self, data: &Type) -> SysResult<()>;
}
Expand description

Describes format setter, specifying data type as type param

Default implementations only perform write, without opening/closing clipboard

Required Methods§

source

fn write_clipboard(&self, data: &Type) -> SysResult<()>

Writes content of data onto clipboard, returning whether it was successful or not

Implementors§

source§

impl<T: AsRef<str>> Setter<[T]> for FileList

source§

impl<T: AsRef<str>> Setter<T> for Unicode

source§

impl<T: AsRef<[u8]>> Setter<T> for Bitmap

source§

impl<T: AsRef<[u8]>> Setter<T> for RawData