pub struct ResourceBufferShape { /* private fields */ }Expand description
The bulk regions one active Resource row needs.
Heap-backed tables allocate these lengths exactly. Fixed tables retain their compile-time storage and use the shape to reject rows that cannot fit.
Implementations§
Source§impl ResourceBufferShape
impl ResourceBufferShape
pub const fn try_for_transfer( transfer_bytes: usize, sdu: usize, ) -> Result<ResourceBufferShape, ResourceBufferShapeError>
pub const fn transfer_bytes(self) -> usize
pub const fn part_count(self) -> usize
Sourcepub const fn buffer_bytes(self) -> usize
pub const fn buffer_bytes(self) -> usize
Transfer bytes plus one map hash and one byte of part state per part.
Trait Implementations§
Source§impl Clone for ResourceBufferShape
impl Clone for ResourceBufferShape
Source§fn clone(&self) -> ResourceBufferShape
fn clone(&self) -> ResourceBufferShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceBufferShape
Source§impl Debug for ResourceBufferShape
impl Debug for ResourceBufferShape
impl Eq for ResourceBufferShape
Source§impl PartialEq for ResourceBufferShape
impl PartialEq for ResourceBufferShape
impl StructuralPartialEq for ResourceBufferShape
Auto Trait Implementations§
impl Freeze for ResourceBufferShape
impl RefUnwindSafe for ResourceBufferShape
impl Send for ResourceBufferShape
impl Sync for ResourceBufferShape
impl Unpin for ResourceBufferShape
impl UnsafeUnpin for ResourceBufferShape
impl UnwindSafe for ResourceBufferShape
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