Struct webrender::render_backend::ScratchBuffer
source · pub struct ScratchBuffer {
pub primitive: PrimitiveScratchBuffer,
pub picture: PictureScratchBuffer,
pub frame: FrameScratchBuffer,
pub clip_store: ClipStoreScratchBuffer,
}
Fields§
§primitive: PrimitiveScratchBuffer
§picture: PictureScratchBuffer
§frame: FrameScratchBuffer
§clip_store: ClipStoreScratchBuffer
Implementations§
source§impl ScratchBuffer
impl ScratchBuffer
pub fn begin_frame(&mut self)
pub fn end_frame(&mut self)
pub fn recycle(&mut self, recycler: &mut Recycler)
pub fn memory_pressure(&mut self)
Trait Implementations§
source§impl Default for ScratchBuffer
impl Default for ScratchBuffer
source§fn default() -> ScratchBuffer
fn default() -> ScratchBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScratchBuffer
impl RefUnwindSafe for ScratchBuffer
impl Send for ScratchBuffer
impl Sync for ScratchBuffer
impl Unpin for ScratchBuffer
impl UnwindSafe for ScratchBuffer
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