pub struct BAM {
pub tracks: u8,
pub free_sectors: [u8; 40],
pub bitmap: [[u8; 3]; 40],
pub disk_name: [u8; 16],
pub disk_id: [u8; 2],
pub dos_type: u8,
}
Fields§
§tracks: u8
§free_sectors: [u8; 40]
§bitmap: [[u8; 3]; 40]
§disk_name: [u8; 16]
§disk_id: [u8; 2]
§dos_type: u8
Implementations§
Source§impl BAM
impl BAM
pub fn allocate_sector(&mut self, track: u8, sector: u8) -> Result<(), D64Error>
pub fn free_sector(&mut self, track: u8, sector: u8) -> Result<(), D64Error>
pub fn find_free_sector(&self, track: u8) -> Option<u8>
pub fn get_free_sectors_count(&self, track: u8) -> Result<u8, D64Error>
pub fn get_disk_name(&self) -> String
pub fn get_disk_id(&self) -> String
pub fn set_disk_name(&mut self, name: &str)
pub fn set_disk_id(&mut self, id: &str)
Auto Trait Implementations§
impl Freeze for BAM
impl RefUnwindSafe for BAM
impl Send for BAM
impl Sync for BAM
impl Unpin for BAM
impl UnwindSafe for BAM
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