pub struct PaddedInOutBuf<'inp, 'out, BS: ArrayLength<u8>> { /* private fields */ }
Expand description
Variant of InOutBuf
with optional padded tail block.
Implementations§
Source§impl<'inp, 'out, BS: ArrayLength<u8>> PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS: ArrayLength<u8>> PaddedInOutBuf<'inp, 'out, BS>
Sourcepub fn get_blocks<'a>(&'a mut self) -> InOutBuf<'a, 'a, GenericArray<u8, BS>>
pub fn get_blocks<'a>(&'a mut self) -> InOutBuf<'a, 'a, GenericArray<u8, BS>>
Get full blocks.
Sourcepub fn get_tail_block<'a>(
&'a mut self,
) -> Option<InOut<'a, 'a, GenericArray<u8, BS>>>
pub fn get_tail_block<'a>( &'a mut self, ) -> Option<InOut<'a, 'a, GenericArray<u8, BS>>>
Get padded tail block.
For paddings with P::TYPE = PadType::Reversible
it always returns Some
.
Auto Trait Implementations§
impl<'inp, 'out, BS> Freeze for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> RefUnwindSafe for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> !Send for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> !Sync for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> Unpin for PaddedInOutBuf<'inp, 'out, BS>
impl<'inp, 'out, BS> !UnwindSafe 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