Trait WriteAt

Source
pub trait WriteAt {
    // Required method
    fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>;

    // Provided method
    fn write_all_at(&mut self, buf: &[u8], offs: u64) -> Result<()> { ... }
}
Expand description

Write data at an offset

Required Methods§

Source

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

Provided Methods§

Source

fn write_all_at(&mut self, buf: &[u8], offs: u64) -> Result<()>

Implementations on Foreign Types§

Source§

impl WriteAt for Vec<u8>

Source§

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

Source§

impl WriteAt for File

Source§

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

Source§

impl WriteAt for [u8]

Source§

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

Source§

impl<'a> WriteAt for &'a File

File can also be written via ‘&’ (non-mutable reference) due to os intervention

Source§

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

Source§

impl<'a, T: WriteAt + ?Sized> WriteAt for &'a mut T

Given a type T that impliments WriteAt, impliment WriteAt for &mut T

Source§

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

Implementors§