Struct IoSlice

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

Fields

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

Implementations

impl<'a> IoSlice<'a>

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

Trait Implementations

impl<'a> Clone for IoSlice<'a>

fn clone(&self) -> IoSlice<'a>

impl<'a> Copy for IoSlice<'a>

impl<'a> TrivialClone for IoSlice<'a>

Auto Trait Implementations

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

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

impl<'a> Freeze for IoSlice<'a>

impl<'a> RefUnwindSafe for IoSlice<'a>

impl<'a> Unpin for IoSlice<'a>

impl<'a> UnsafeUnpin for IoSlice<'a>

impl<'a> UnwindSafe for IoSlice<'a>

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for IoSlice<'a> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T> SizedTypeProperties for IoSlice<'a>

impl<T, U> Into<U> for IoSlice<'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 IoSlice<'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 IoSlice<'a> where U: TryFrom<T>,

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