pub trait FileExt: Read + Write + Seek + AsAny + Send + Sync {
// Required methods
fn readable(&self) -> bool;
fn writable(&self) -> bool;
fn executable(&self) -> bool;
// Provided methods
fn read_from_seek(
&mut self,
pos: SeekFrom,
buf: &mut [u8]
) -> AxResult<usize> { ... }
fn write_to_seek(&mut self, pos: SeekFrom, buf: &[u8]) -> AxResult<usize> { ... }
}
Expand description
用于给虚存空间进行懒分配
Required Methods§
sourcefn executable(&self) -> bool
fn executable(&self) -> bool
whether the file is executable