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.
Implementations§
Trait Implementations§
Source§impl Default for OwnedDrawData
impl Default for OwnedDrawData
Source§fn default() -> OwnedDrawData
fn default() -> OwnedDrawData
The default OwnedDrawData
struct is empty.
Source§impl Drop for OwnedDrawData
impl Drop for OwnedDrawData
Source§impl From<&DrawData> for OwnedDrawData
impl From<&DrawData> for OwnedDrawData
Source§fn from(value: &DrawData) -> OwnedDrawData
fn from(value: &DrawData) -> OwnedDrawData
Construct OwnedDrawData
from DrawData
by creating a heap-allocated deep copy of the given DrawData
Auto Trait Implementations§
impl Freeze for OwnedDrawData
impl RefUnwindSafe for OwnedDrawData
impl !Send for OwnedDrawData
impl !Sync for OwnedDrawData
impl Unpin for OwnedDrawData
impl UnwindSafe for OwnedDrawData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.