Struct IoSliceMut

#[repr(transparent)]
pub(crate) struct IoSliceMut<'a> { pub(in ::io::io_slice::repr) vec: iovec, pub(in ::io::io_slice::repr) _p: PhantomData<&'a mut [u8]> }

Fields

vec: iovec
_p: PhantomData<&'a mut [u8]>

Implementations

impl<'a> IoSliceMut<'a>

fn new(buf: &'a mut [u8]) -> IoSliceMut<'a>
fn advance(&mut self, n: usize)
fn as_slice(&self) -> &[u8]
const fn into_slice(self) -> &'a mut [u8]
fn as_mut_slice(&mut self) -> &mut [u8]

Auto Trait Implementations

impl<'a> !Send for IoSliceMut<'a>

impl<'a> !Sync for IoSliceMut<'a>

impl<'a> !UnwindSafe for IoSliceMut<'a>

impl<'a> Freeze for IoSliceMut<'a>

impl<'a> RefUnwindSafe for IoSliceMut<'a>

impl<'a> Unpin for IoSliceMut<'a>

impl<'a> UnsafeUnpin for IoSliceMut<'a>

Blanket Implementations

impl<T> Any for IoSliceMut<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IoSliceMut<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IoSliceMut<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for IoSliceMut<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for IoSliceMut<'a> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for IoSliceMut<'a>

impl<T, U> Into<U> for IoSliceMut<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for IoSliceMut<'a> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for IoSliceMut<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>