pub struct QueryBufferDescription { /* private fields */ }Expand description
A description of the buffer size (in bytes) and alignment required for a compressed query.
Implementations§
Source§impl QueryBufferDescription
impl QueryBufferDescription
Sourcepub fn new(size: usize, align: PowerOfTwo) -> Self
pub fn new(size: usize, align: PowerOfTwo) -> Self
Construct a new QueryBufferDescription
Sourcepub fn bytes(&self) -> usize
pub fn bytes(&self) -> usize
Return the number of bytes needed in a buffer for a compressed query.
Sourcepub fn align(&self) -> PowerOfTwo
pub fn align(&self) -> PowerOfTwo
Return the necessary alignment of the base pointer for a query buffer.
Trait Implementations§
Source§impl Clone for QueryBufferDescription
impl Clone for QueryBufferDescription
Source§fn clone(&self) -> QueryBufferDescription
fn clone(&self) -> QueryBufferDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryBufferDescription
impl RefUnwindSafe for QueryBufferDescription
impl Send for QueryBufferDescription
impl Sync for QueryBufferDescription
impl Unpin for QueryBufferDescription
impl UnsafeUnpin for QueryBufferDescription
impl UnwindSafe for QueryBufferDescription
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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