[−][src]Struct ioslice::IoSliceMut
A #![no_std]
-friendly wrapper over the std::io::IoSliceMut
.
Internally, the struct will store the following based on crate features:
std
- wrappingstd::io::IoSliceMut
directly, with accessors for it as well as conversion functions and From impls.libc
(with#[cfg(unix)]
- wrappinglibc::iovec
directly on platforms that support it, together with a marker making rustc think this stores a&'a mut [u8]
.- (none) - wrapping a regular slice, that may not have the same ABI guarantees as the types from std or libc have.
Implementations
impl<'a> IoSliceMut<'a>
[src]
pub fn new(slice: &'a mut [u8]) -> Self
[src]
pub fn as_slice(&self) -> &[u8]
[src]
pub fn as_slice_mut<'b>(&'b mut self) -> &'b mut [u8]
[src]
pub unsafe fn from_raw_iovec(slice: iovec) -> Self
[src]
pub fn as_raw_iovec(&self) -> iovec
[src]
pub fn as_raw_iovecs(slices: &'a [Self]) -> &'a [iovec]
[src]
pub unsafe fn as_raw_iovecs_mut(slices: &'a mut [Self]) -> &'a mut [iovec]
[src]
pub unsafe fn slice_mut_from_raw_iovecs(slice: &mut [iovec]) -> &mut [Self]
[src]
pub fn slice_mut_as_raw_iovecs(slice: &mut [Self]) -> &mut [iovec]
[src]
pub fn as_std_ioslices(slices: &'a [Self]) -> &'a [IoSlice<'a>]
[src]
pub fn as_std_mut_ioslices(slices: &'a [Self]) -> &'a [IoSliceMut<'a>]
[src]
pub fn as_std_ioslices_mut(slices: &'a mut [Self]) -> &'a mut [IoSlice<'a>]
[src]
pub fn as_std_mut_ioslices_mut(
slices: &'a mut [Self]
) -> &'a mut [IoSliceMut<'a>]
[src]
slices: &'a mut [Self]
) -> &'a mut [IoSliceMut<'a>]
pub fn advance(&mut self, count: usize)
[src]
#[must_use]pub fn advance_within<'b>(
slices: &'b mut [Self],
n: usize
) -> Option<&'b mut [Self]>
[src]
slices: &'b mut [Self],
n: usize
) -> Option<&'b mut [Self]>
Trait Implementations
impl<'a> AsMut<[u8]> for IoSliceMut<'a>
[src]
impl<'a> AsRef<[u8]> for IoSliceMut<'a>
[src]
impl<'a> Borrow<[u8]> for IoSliceMut<'a>
[src]
impl<'a> BorrowMut<[u8]> for IoSliceMut<'a>
[src]
fn borrow_mut(&mut self) -> &mut [u8]
[src]
impl<'a> Debug for IoSliceMut<'a>
[src]
impl<'a> Deref for IoSliceMut<'a>
[src]
impl<'a> DerefMut for IoSliceMut<'a>
[src]
impl<'a> Eq for IoSliceMut<'a>
[src]
impl<'a> From<&'a mut [u8]> for IoSliceMut<'a>
[src]
impl<'a> From<IoSliceMut<'a>> for iovec
[src]
fn from(slice: IoSliceMut<'a>) -> Self
[src]
impl<'a> Hash for IoSliceMut<'a>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Ord for IoSliceMut<'a>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a> PartialEq<[u8]> for IoSliceMut<'a>
[src]
impl<'a, 'b> PartialEq<IoSlice<'b>> for IoSliceMut<'a>
[src]
fn eq(&self, other: &IoSlice<'b>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<IoSliceMut<'a>> for IoSliceMut<'a>
[src]
impl<'a, 'b> PartialEq<IoSliceMut<'b>> for IoSlice<'a>
[src]
fn eq(&self, other: &IoSliceMut<'b>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialOrd<[u8]> for IoSliceMut<'a>
[src]
fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialOrd<IoSlice<'b>> for IoSliceMut<'a>
[src]
fn partial_cmp(&self, other: &IoSlice<'b>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialOrd<IoSliceMut<'a>> for IoSliceMut<'a>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialOrd<IoSliceMut<'b>> for IoSlice<'a>
[src]
fn partial_cmp(&self, other: &IoSliceMut<'b>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> Send for IoSliceMut<'a>
[src]
impl<'a> Sync for IoSliceMut<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for IoSliceMut<'a>
impl<'a> Unpin for IoSliceMut<'a>
impl<'a> !UnwindSafe for IoSliceMut<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,