pub struct LoanableBatch {
pub batch_id: u64,
/* private fields */
}Fields§
§batch_id: u64Implementations§
Source§impl LoanableBatch
impl LoanableBatch
Sourcepub fn new(batch_id: u64, capacity: usize) -> Self
pub fn new(batch_id: u64, capacity: usize) -> Self
Create a new loanable batch with the given capacity.
pub fn reset(&mut self)
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn remaining_capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn as_ptr(&self) -> *const u8
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn set_len(&mut self, len: usize)
Auto Trait Implementations§
impl Freeze for LoanableBatch
impl RefUnwindSafe for LoanableBatch
impl Send for LoanableBatch
impl Sync for LoanableBatch
impl Unpin for LoanableBatch
impl UnsafeUnpin for LoanableBatch
impl UnwindSafe for LoanableBatch
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