pub struct Partition<'a, IO> { /* private fields */ }Expand description
Used to interface with partitions
Implementations§
Trait Implementations§
Source§impl<'a, IO: Read> Read for Partition<'a, IO>
impl<'a, IO: Read> Read for Partition<'a, IO>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf.Source§impl<'a, IO: Seek> Seek for Partition<'a, IO>
impl<'a, IO: Seek> Seek for Partition<'a, IO>
Source§impl<'a, IO: Write> Write for Partition<'a, IO>
impl<'a, IO: Write> Write for Partition<'a, IO>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written.
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<'a, IO> Freeze for Partition<'a, IO>
impl<'a, IO> RefUnwindSafe for Partition<'a, IO>where
IO: RefUnwindSafe,
impl<'a, IO> Send for Partition<'a, IO>where
IO: Send,
impl<'a, IO> Sync for Partition<'a, IO>where
IO: Sync,
impl<'a, IO> Unpin for Partition<'a, IO>
impl<'a, IO> !UnwindSafe for Partition<'a, IO>
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