pub struct PaddedInOutBuf<'inp, 'out, BS: ArraySize> {
in_ptr: *const Array<u8, BS>,
out_ptr: *mut Array<u8, BS>,
blocks_len: usize,
tail_block: Option<Array<u8, BS>>,
_pd: PhantomData<(&'inp u8, &'out mut u8)>,
}Expand description
Variant of InOutBuf with optional padded tail block.
Fields§
§in_ptr: *const Array<u8, BS>Pointer to the input blocks.
out_ptr: *mut Array<u8, BS>Pointer to the output blocks (including tail block if present).
blocks_len: usizeNumber of full blocks (i.e. excluding the tail block if present).
tail_block: Option<Array<u8, BS>>Padded input tail.
_pd: PhantomData<(&'inp u8, &'out mut u8)>Implementations§
Source§impl<'out, BS: ArraySize> PaddedInOutBuf<'_, 'out, BS>
impl<'out, BS: ArraySize> PaddedInOutBuf<'_, 'out, BS>
Auto Trait Implementations§
impl<'inp, 'out, BS> !Send for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> !Sync for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> !UnwindSafe for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> Freeze for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> RefUnwindSafe for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> Unpin for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> UnsafeUnpin for PaddedInOutBuf<'inp, 'out, BS>
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