FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    as_data_format

    fn as_data_format(self: &Self) -> &DataFormat
    

    The format without its data type.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Deref
    • Clone
    • From<DataFormatOf<T>>
    • PartialEq<DataFormatOf<U>>
    • Eq
    • PartialEq<DataFormat>
    • PartialEq<DataFormatOf<T>>
    • Hash
    • Display
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.