pub struct OwnedDrawData { /* private fields */ }
Expand description
A container for a heap-allocated deep copy of a DrawData
struct.
Can be used to retain draw data for rendering on a different thread.
The underlying copy is released when this struct is dropped.
If this struct contains a DrawData
object, then this function returns a reference to it.
Otherwise, this struct is empty and so this function returns None
.
The default OwnedDrawData
struct is empty.
Releases any heap-allocated memory consumed by this OwnedDrawData
object
Construct OwnedDrawData
from DrawData
by creating a heap-allocated deep copy of the given DrawData
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.