pub struct Clipboard { /* private fields */ }
Expand description

Clipboard accessor.

Note:

You can have only one such accessor across your program.

Warning:

In Windows Clipboard opens globally and only one application can set data onto format at the time.

Therefore as soon as operations are finished, user is advised to close Clipboard.

Implementations

Initializes new clipboard accessor.

Attempts to open clipboard.

Empties clipboard.

Retrieves size of clipboard content.

Sets data onto clipboard with specified format.

Wraps raw::set()

Sets str or String onto clipboard as Unicode format.

Under hood it transforms Rust UTF-8 String into UTF-16

Retrieves data of specified format from clipboard.

Wraps raw::get()

Retrieves String of CF_UNICODETEXT format from clipboard.

Wraps raw::get_string()

Enumerator over all formats on clipboard..

Returns Clipboard sequence number.

Determines whenever provided clipboard format is available on clipboard or not.

Retrieves number of currently available formats on clipboard.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.