Struct inout::PaddedInOutBuf
source · pub struct PaddedInOutBuf<'inp, 'out, BS: ArrayLength<u8>> {
blocks: InOutBuf<'inp, 'out, GenericArray<u8, BS>>,
tail_in: GenericArray<u8, BS>,
tail_out: Option<&'out mut GenericArray<u8, BS>>,
}
Expand description
Variant of InOutBuf
with optional padded tail block.
Fields§
§blocks: InOutBuf<'inp, 'out, GenericArray<u8, BS>>
§tail_in: GenericArray<u8, BS>
§tail_out: Option<&'out mut GenericArray<u8, BS>>
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