Struct cpclib::disc::edsk::ExtendedDsk
source · pub struct ExtendedDsk { /* private fields */ }
Implementations
sourceimpl ExtendedDsk
impl ExtendedDsk
sourcepub fn open<P>(path: P) -> Result<ExtendedDsk>where
P: AsRef<Path>,
pub fn open<P>(path: P) -> Result<ExtendedDsk>where
P: AsRef<Path>,
open an extended dsk from an existing file
sourcepub fn save<P>(&self, path: P) -> Result<()>where
P: AsRef<Path>,
pub fn save<P>(&self, path: P) -> Result<()>where
P: AsRef<Path>,
Save the dsk in a file one disc
pub fn is_double_sided(&self) -> bool
pub fn nb_tracks_per_side(&self) -> u8
pub fn nb_sides(&self) -> u8
sourcepub fn sector(&self, track: u8, sector: u8, side: u8) -> Option<&Sector>
pub fn sector(&self, track: u8, sector: u8, side: u8) -> Option<&Sector>
Search and returns the appropriate sector TODO use get_track_information
pub fn get_track_information(
&self,
side: Side,
track: u8
) -> Option<&TrackInformation>
pub fn get_track_information_mut(
&mut self,
side: Side,
track: u8
) -> Option<&mut TrackInformation>
sourceimpl ExtendedDsk
impl ExtendedDsk
pub fn to_cfg(&self) -> DiscConfig
Trait Implementations
sourceimpl Default for ExtendedDsk
impl Default for ExtendedDsk
sourcefn default() -> ExtendedDsk
fn default() -> ExtendedDsk
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExtendedDsk
impl Send for ExtendedDsk
impl Sync for ExtendedDsk
impl Unpin for ExtendedDsk
impl UnwindSafe for ExtendedDsk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.