pub struct ADF {
pub data: Vec<u8>,
}
Fields§
§data: Vec<u8>
Implementations§
source§impl ADF
impl ADF
pub fn format(&mut self, disk_type: DiskType, disk_name: &str) -> Result<()>
pub fn from_bytes(data: &[u8]) -> Result<Self>
pub fn from_file(path: &str) -> Result<ADF>
pub fn write_to_file(&self, path: &str) -> Result<()>
pub fn read_sector(&self, sector: usize) -> &[u8] ⓘ
pub fn write_sector(&mut self, sector: usize, data: &[u8]) -> Result<()>
pub fn read_boot_block(&self) -> &[u8] ⓘ
pub fn read_root_block(&self) -> &[u8] ⓘ
pub fn list_root_directory(&self) -> Result<Vec<FileInfo>>
pub fn list_directory(&self, block: usize) -> Result<Vec<FileInfo>>
pub fn read_file_contents(&self, block: usize) -> Result<Vec<u8>>
pub fn information(&self) -> Result<String>
pub fn list(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ADF
impl RefUnwindSafe for ADF
impl Send for ADF
impl Sync for ADF
impl Unpin for ADF
impl UnwindSafe for ADF
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)