pub struct WithForeignSource<'src, 'bufs> {
pub ro_src: Option<&'src [u8]>,
pub src: &'bufs mut Vec<u8>,
/* private fields */
}
Expand description
A utility to do buffer-swapping with, similar to Buffers
, but with support for a
read-only one-time buffer as source.
Fields§
§ro_src: Option<&'src [u8]>
The original source buffer, or None
if already altered.
src: &'bufs mut Vec<u8>
The source buffer that will be used after the first call to swap
.
Implementations§
source§impl WithForeignSource<'_, '_>
impl WithForeignSource<'_, '_>
Auto Trait Implementations§
impl<'src, 'bufs> Freeze for WithForeignSource<'src, 'bufs>
impl<'src, 'bufs> RefUnwindSafe for WithForeignSource<'src, 'bufs>
impl<'src, 'bufs> Send for WithForeignSource<'src, 'bufs>
impl<'src, 'bufs> Sync for WithForeignSource<'src, 'bufs>
impl<'src, 'bufs> Unpin for WithForeignSource<'src, 'bufs>
impl<'src, 'bufs> !UnwindSafe for WithForeignSource<'src, 'bufs>
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