pub struct PyramidBuffers { /* private fields */ }Expand description
Reusable backing storage for pyramid construction.
Typically you construct a PyramidBuffers once (for example with
PyramidBuffers::with_capacity) and reuse it across frames by
passing a mutable reference into build_pyramid. The internal level
buffers are resized on demand to match the requested pyramid shape.
Implementations§
Source§impl PyramidBuffers
impl PyramidBuffers
Sourcepub fn with_capacity(num_levels: u8) -> Self
pub fn with_capacity(num_levels: u8) -> Self
Create a buffer set with capacity reserved for num_levels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PyramidBuffers
impl RefUnwindSafe for PyramidBuffers
impl Send for PyramidBuffers
impl Sync for PyramidBuffers
impl Unpin for PyramidBuffers
impl UnsafeUnpin for PyramidBuffers
impl UnwindSafe for PyramidBuffers
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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