pub struct TkData(pub u64);
The type of per-widget toolkit data.
May be used however the toolkit deems fit, except that widgets are allowed
to default-construct this (i.e. set to zero), and valid values should not be
zero.
Toolkits may with to transmute data to/from their own type(s). In this case
they should ensure (a) that size_of::<TkData>()
is sufficient, (b) that
align_of::<TkData>()
is sufficient, (c) gracefully handle the case
TkData
is larger than their type.
This property is true for default-constructed values but should be false
after the data has been set by the toolkit.
Essentially this test is just that all data is zero.
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static