pub struct AttrValue { /* private fields */ }
Expand description
Attribute value used in DataType
. You have no need to use this except implementing DataType
for your type.
Sets a value to the attribute.
Note that if incorrect type parameter T
is specified,
its behavior is undefined. It may cause an access violation.
Gets a value from the attribute.
Note that if incorrect type parameter T
is specified,
its behavior is undefined. It may cause an access violation.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.