pub struct PartialBuffer<B> { /* private fields */ }
Implementations§
Source§impl<B: AsRef<[u8]>> PartialBuffer<B>
impl<B: AsRef<[u8]>> PartialBuffer<B>
Source§impl<B: AsRef<[u8]> + AsMut<[u8]>> PartialBuffer<B>
impl<B: AsRef<[u8]> + AsMut<[u8]>> PartialBuffer<B>
pub fn unwritten_mut(&mut self) -> &mut [u8] ⓘ
pub fn copy_unwritten_from<C: AsRef<[u8]>>( &mut self, other: &mut PartialBuffer<C>, ) -> usize
Trait Implementations§
Source§impl<B: Debug> Debug for PartialBuffer<B>
impl<B: Debug> Debug for PartialBuffer<B>
Source§impl<B: Default> Default for PartialBuffer<B>
impl<B: Default> Default for PartialBuffer<B>
Source§fn default() -> PartialBuffer<B>
fn default() -> PartialBuffer<B>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<B> Freeze for PartialBuffer<B>where
B: Freeze,
impl<B> RefUnwindSafe for PartialBuffer<B>where
B: RefUnwindSafe,
impl<B> Send for PartialBuffer<B>where
B: Send,
impl<B> Sync for PartialBuffer<B>where
B: Sync,
impl<B> Unpin for PartialBuffer<B>where
B: Unpin,
impl<B> UnwindSafe for PartialBuffer<B>where
B: UnwindSafe,
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