DataFormatOf
struct · ferroui-base · v0.5.0
struct DataFormatOf<T>
Represents a format usable with the clipboard and drag-and-drop, with a data type.
T is the type of the values of the format as they are handed out:
String for text, Rc<[u8]> for bytes, Rc<Bitmap> for bitmaps. It
is only used to resolve the typed accessors.
This type cannot be instantiated directly. Use universal formats such as
DataFormat::text, or create custom formats using
DataFormat::create_bytes_application_format,
DataFormat::create_string_application_format,
DataFormat::create_bytes_platform_format,
DataFormat::create_string_platform_format or
DataFormat::create_in_process_format.
Members
as_data_format
fn as_data_format(self: &Self) -> &DataFormat
The format without its data type.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedToStringErasedDestructorIntoEitherDerefCloneFrom<DataFormatOf<T>>PartialEq<DataFormatOf<U>>EqPartialEq<DataFormat>PartialEq<DataFormatOf<T>>HashDisplayDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.