Struct webrender::render_task_graph::RenderTaskAllocation
source · pub struct RenderTaskAllocation<'a> {
pub alloc: Allocation<'a, RenderTask>,
}
Expand description
Allows initializing a render task directly into the render task buffer.
See utils::VecHelpers. RenderTask is fairly large so avoiding the move when pushing into the vector can save a lot of expensive memcpys on pages with many render tasks.
Fields§
§alloc: Allocation<'a, RenderTask>
Implementations§
source§impl<'l> RenderTaskAllocation<'l>
impl<'l> RenderTaskAllocation<'l>
pub fn init(self, value: RenderTask) -> RenderTaskId
Auto Trait Implementations§
impl<'a> Freeze for RenderTaskAllocation<'a>
impl<'a> RefUnwindSafe for RenderTaskAllocation<'a>
impl<'a> Send for RenderTaskAllocation<'a>
impl<'a> Sync for RenderTaskAllocation<'a>
impl<'a> Unpin for RenderTaskAllocation<'a>
impl<'a> !UnwindSafe for RenderTaskAllocation<'a>
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 more