pub fn data_text<C: Into<ControlHandle>>(handle: C) -> Option<String> {
        use ClipboardFormat::*;
        let mut data = None;

        Clipboard::open(handle);

        unsafe {
            if Clipboard::has_format(UnicodeText) {
                let handle = Clipboard::data_handle(UnicodeText).unwrap();
                data = from_wide_ptr(handle.cast());
                handle.release();
            } else if Clipboard::has_format(Text) {
                let handle = Clipboard::data_handle(Text).unwrap();
                data = from_ptr(handle.cast());
                handle.release();
            }
        }

        Clipboard::close();

        data
    }
/**
        Return the current text value in the clipboard (if there is one).
        This function will return the text if the clipboard has either the `UnicodeText` format or the `Text` format.

        If the clipboard do not have a text format OR the text data is not a valid utf-8 sequence, this function will return `None`.
    */
Return the current text value in the clipboard (if there is one).
This function will return the text if the clipboard has either the `UnicodeText` format or the `Text` format.

If the clipboard do not have a text format OR the text data is not a valid utf-8 sequence, this function will return `None`.
Return the current text value in the clipboard ( if there is one ) . This function will return the text if the clipboard has either the ` UnicodeText ` format or the ` Text ` format . If the clipboard do not have a text format OR the text data is not a valid utf - 8 sequence this function will return ` None ` .
pub fn data_text<C: Into<ControlHandle>>(handle: C) -> Option<String> {
        use ClipboardFormat::*;
        let mut data = None;
        Clipboard::open(handle);
        unsafe {
            if Clipboard::has_format(UnicodeText) {
                let handle = Clipboard::data_handle(UnicodeText).unwrap();
                data = from_wide_ptr(handle.cast());
                handle.release();
            } else if Clipboard::has_format(Text) {
                let handle = Clipboard::data_handle(Text).unwrap();
                data = from_ptr(handle.cast());
                handle.release();
            }
        }
        Clipboard::close();
        data
    }
pub fn data_text < C : Into < ControlHandle > > ( handle : C ) -> Option < String > { use ClipboardFormat :: * ; let mut data = None ; Clipboard :: open ( handle ) ; unsafe { if Clipboard :: has_format ( UnicodeText ) { let handle = Clipboard :: data_handle ( UnicodeText ) . unwrap ( ) ; data = from_wide_ptr ( handle . cast ( ) ) ; handle . release ( ) ; } else if Clipboard :: has_format ( Text ) { let handle = Clipboard :: data_handle ( Text ) . unwrap ( ) ; data = from_ptr ( handle . cast ( ) ) ; handle . release ( ) ; } } Clipboard :: close ( ) ; data }
Return the current text value in the clipboard (if there is one).
Return the current text value in the clipboard ( if there is one ) .
handle
C