Struct iced::Clipboard[][src]

pub struct Clipboard { /* fields omitted */ }

A buffer for short-term storage and transfer within and between applications.

Implementations

impl Clipboard[src]

pub fn connect(window: &Window) -> Clipboard[src]

Creates a new Clipboard for the given window.

pub fn read(&self) -> Option<String>[src]

Reads the current content of the Clipboard as text.

pub fn write(&mut self, contents: String)[src]

Writes the given text contents to the Clipboard.

Trait Implementations

impl Clipboard for Clipboard[src]

Auto Trait Implementations

impl !RefUnwindSafe for Clipboard

impl !Send for Clipboard

impl !Sync for Clipboard

impl Unpin for Clipboard

impl !UnwindSafe for Clipboard

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,