Struct BufMut

Source
pub struct BufMut { /* private fields */ }

Trait Implementations§

Source§

impl IoBuf for BufMut

Source§

fn as_ptr(&self) -> *const u8

Source§

fn bytes_init(&self) -> usize

Source§

fn as_bytes(&self) -> Bytes

Source§

unsafe fn slice_unchecked(self, range: impl RangeBounds<usize>) -> Buf

Slice the buffer without bounds checking. Read more
Source§

unsafe fn recover_from_slice(buf: Buf) -> Self

Recover the original buffer from a sliced buffer. Read more
Source§

fn as_slice(&self) -> &[u8]

Source§

fn calculate_bounds<R: RangeBounds<usize>>(&self, range: R) -> (usize, usize)

Source§

impl IoBufMut for BufMut

Source§

fn as_mut_ptr(&mut self) -> *mut u8

Source§

unsafe fn slice_mut_unchecked(self, range: impl RangeBounds<usize>) -> BufMut

Slice the mutable buffer without bounds checking. Read more
Source§

unsafe fn recover_from_slice_mut(buf: BufMut) -> Self

Recover the original mutable buffer from a sliced buffer. Read more
Source§

fn as_slice_mut(&mut self) -> &mut [u8]

Auto Trait Implementations§

§

impl Freeze for BufMut

§

impl RefUnwindSafe for BufMut

§

impl !Send for BufMut

§

impl !Sync for BufMut

§

impl Unpin for BufMut

§

impl UnwindSafe for BufMut

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> MaybeOwned for T
where T: 'static,

Source§

impl<T> MaybeSend for T

Source§

impl<T> MaybeSync for T